ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dmat21.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 dmatrix::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 }
#define x
void fill_seqadd(double, double)
Fills dvector elements with values starting from base and incremented by offset.
Definition: cranfill.cpp:58
int rowmax() const
Definition: fvar.hpp:2929
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
dvector & elem(int i)
Definition: fvar.hpp:3011
double fill_seqadd(double, double)
Description not yet available.
Definition: dmat21.cpp:35
unsigned int size() const
Get number of elements in array.
Definition: dvector.h:209
int rowmin() const
Definition: fvar.hpp:2925