ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
model32.cpp
Go to the documentation of this file.
1 
5 #include <admodel.h>
6 
7 //Destructor
9 {
10  *pi = val;
11 }
12 //Destructor
14 {
15  *pd = val;
16 }
17 //Destructor
19 {
20  if (pd)
21  {
22  *pd = value(*this);
23  }
24 }
27 {
28  *pd = value(*this);
29 }
32 {
33  *pd = value(*this);
34 }
37 {
38  int imin=indexmin();
39  int imax=indexmax();
40  double* tmp=pd;
41  for (int i=imin;i<=imax;i++)
42  {
43  *tmp++=value((*this)[i]);
44  }
45 }
48 {
49  int imin=indexmin();
50  int imax=indexmax();
51  double* tmp = pd;
52  for (int i=imin;i<=imax;i++)
53  {
54  *tmp++=value((*this)[i]);
55  }
56 }
59 {
60  int imin=indexmin();
61  int imax=indexmax();
62  double* tmp=pd;
63  for (int i=imin;i<=imax;i++)
64  {
65  *tmp++=value((*this)[i]);
66  }
67 }
70 {
71  int imin=indexmin();
72  int imax=indexmax();
73  double* tmp=pd;
74  for (int i=imin;i<=imax;i++)
75  {
76  *tmp++=(*this)[i];
77  }
78 }
81 {
82  double* tmp=d;
83  int rmin=rowmin();
84  int rmax=rowmax();
85  int cmin=colmin();
86  int cmax=colmax();
87  if (!AD_gaussflag)
88  {
89  for (int j=cmin;j<=cmax;j++)
90  {
91  for (int i=rmin;i<=rmax;i++)
92  {
93  *tmp++=(*this)(i,j);
94  }
95  }
96  }
97  else
98  {
99  for (int i=rmin;i<=rmax;i++)
100  {
101  for (int j=cmin;j<=cmax;j++)
102  {
103  *tmp++=(*this)(i,j);
104  }
105  }
106  }
107 }
110 {
111  double* tmp=d;
112  int rmin=rowmin();
113  int rmax=rowmax();
114  int cmin=colmin();
115  int cmax=colmax();
116  if (!AD_gaussflag)
117  {
118  for (int j=cmin;j<=cmax;j++)
119  {
120  for (int i=rmin;i<=rmax;i++)
121  {
122  *tmp++=value((*this)(i,j));
123  }
124  }
125  }
126  else
127  {
128  for (int i=rmin;i<=rmax;i++)
129  {
130  for (int j=cmin;j<=cmax;j++)
131  {
132  *tmp++=value((*this)(i,j));
133  }
134  }
135  }
136 }
139 {
140  double* tmp=pd;
141  int rmin=rowmin();
142  int rmax=rowmax();
143  int cmin=colmin();
144  int cmax=colmax();
145  if (!AD_gaussflag)
146  {
147  for (int j=cmin;j<=cmax;j++)
148  {
149  for (int i=rmin;i<=rmax;i++)
150  {
151  *tmp++=value((*this)(i,j));
152  }
153  }
154  }
155  else
156  {
157  for (int i=rmin;i<=rmax;i++)
158  {
159  for (int j=cmin;j<=cmax;j++)
160  {
161  *tmp++=value((*this)(i,j));
162  }
163  }
164  }
165 }
double val
Definition: admodel.h:1806
int rowmax(void) const
Definition: fvar.hpp:2564
virtual ~dll_param_init_vector()
Destructor.
Definition: model32.cpp:58
~dll_param_vector()
Destructor.
Definition: model32.cpp:36
int colmin(void) const
Definition: fvar.hpp:2552
int indexmin() const
Get minimum valid index.
Definition: dvector.h:199
friend dvector value(const dvar_vector &v1)
Description not yet available.
Definition: fvar_ar3.cpp:43
int AD_gaussflag
Definition: model.cpp:27
virtual ~dll_param_init_matrix()
Destructor.
Definition: model32.cpp:109
virtual ~dll_param_init_number()
Definition: model32.cpp:18
double * pd
Definition: admodel.h:1823
virtual ~dll_param_number()
Destructor.
Definition: model32.cpp:31
int rowmax() const
Definition: fvar.hpp:2929
double * pd
Definition: admodel.h:228
virtual ~dll_param_matrix()
Destructor.
Definition: model32.cpp:138
int indexmax() const
Get maximum valid index.
Definition: dvector.h:204
int val
Definition: admodel.h:1477
Description not yet available.
int colmin(void) const
Definition: fvar.hpp:2939
double * pd
Definition: admodel.h:295
int rowmin(void) const
Definition: fvar.hpp:2560
friend double & value(const prevariable &v1)
Definition: fvar.hpp:1495
int indexmin() const
Definition: fvar.hpp:2287
double * d
Definition: admodel.h:1612
virtual ~dll_data_vector()
Destructor.
Definition: model32.cpp:69
double * pd
Definition: admodel.h:1779
virtual ~dll_data_matrix()
Destructor.
Definition: model32.cpp:80
int * pi
Definition: admodel.h:1580
virtual ~dll_data_number()
Definition: model32.cpp:13
double * pd
Definition: admodel.h:258
virtual ~dll_data_int()
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Definition: model32.cpp:8
dvector value(const df1_one_vector &v)
Definition: df11fun.cpp:69
int indexmax() const
Definition: fvar.hpp:2292
int rowmin() const
Definition: fvar.hpp:2925
~dll_param_init_bounded_vector()
Destructor.
Definition: model32.cpp:47
int colmax(void) const
Definition: fvar.hpp:2943
virtual ~dll_param_init_bounded_number()
Destructor.
Definition: model32.cpp:26
int colmax(void) const
Definition: fvar.hpp:2556