ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fvar_m36.cpp
Go to the documentation of this file.
1 /*
2  * $Id$
3  *
4  * Author: David Fournier
5  * Copyright (c) 2008-2012 Regents of the University of California
6  */
11 // file fvar.cpp
12 // constructors, destructors and misc functions involving class dvariable
13 
14 #include "fvar.hpp"
15 
16 #ifdef __TURBOC__
17  #pragma hdrstop
18  #include <iostream.h>
19 #endif
20 
21 #ifdef __ZTC__
22  #include <iostream.hpp>
23 #endif
24 
25 
26 #include <stdio.h>
27 #ifndef __SUN__
28 #endif
29 #include <math.h>
30 
35 double dvar_matrix::fill_seqadd(const double x, const double d)
36 {
37  double x1=x;
38  double d1=d;
39  for (int i=rowmin();i<=rowmax();i++)
40  {
41  elem(i).fill_seqadd(x1,d1);
42  x1+=elem(i).size()*d1;
43  }
44  return x1;
45 }
int rowmax(void) const
Definition: fvar.hpp:2564
dvar_vector & elem(int i)
Definition: fvar.hpp:2507
double fill_seqadd(double, double)
Description not yet available.
Definition: fvar_m36.cpp:35
#define x
unsigned int size() const
Definition: fvar.hpp:2297
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
int rowmin(void) const
Definition: fvar.hpp:2560
void fill_seqadd(double, double)
Description not yet available.
Definition: ranfill1.cpp:33