ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
model30.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  */
7 #include <admodel.h>
8 
14  const ad_integer& rmax, const index_type& cmin,
15  const index_type& cmax, int _phase_start, const char *s)
16 {
17  named_dvar_matrix::allocate(rmin,rmax,cmin,cmax,s);
18  initial_params::allocate(_phase_start);
20  {
22  }
23  else if (ad_comm::global_parfile)
24  {
25  if (allocated(*this))
27  }
28  else
29  {
30  if (allocated(*this))
31  for (int i=indexmin();i<=indexmax();i++)
32  if (allocated((*this)(i)))
33  (*this)(i)=(initial_value);
34  }
35 }
41  const ad_integer& rmax, const index_type& cmin,
42  const index_type& cmax, const char *s)
43 {
44  allocate(rmin,rmax,cmin,cmax,1,s);
45 }
Uses polymorphism to get index information from various data types to be used in constructing and all...
Definition: fvar.hpp:7731
int allocated(const ivector &v)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Definition: fvar_a59.cpp:13
static uistream * global_bparfile
Definition: fvar.hpp:8859
void allocate(void)
Does not allocate, but initializes members.
Definition: fvar_mat.cpp:479
Description not yet available.
void allocate(int _phase_start)
Definition: model.cpp:117
int indexmax(void) const
Definition: fvar.hpp:2572
dvar_matrix()
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Definition: fvar_mat.cpp:15
double initial_value
Definition: admodel.h:823
Stores integer.
Definition: fvar.hpp:7654
static cifstream * global_parfile
Definition: fvar.hpp:8857
int indexmin(void) const
Definition: fvar.hpp:2568