ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
f1b2fnl4.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 #include <df1b2fnl.h>
12 #include <adrndeff.h>
13 
14 /*
15 funnel_init_df1b2vector::funnel_init_df1b2vector
16  (const df1b2_init_bounded_vector & _x)
17 {
18  ADUNCONST(df1b2_init_bounded_vector,x)
19  type=1;
20  pointer=&x;
21  int mmin=x.indexmin();
22  int mmax=x.indexmin();
23  ind_index=x(mmin).get_ind_index();
24  vxu.allocate(mmin,mmax);
25  for (int i=mmin;i<=mmax;i++)
26  {
27  vxu(i)=*(x(i).get_u());
28  }
29  cout << "HERE" << endl;
30 }
31 
32  void funnel_init_df1b2vector::allocate(void){;}
33  void funnel_init_df1b2vector::xinit(init_df1b2vector&,int& ii){;}
34  void funnel_init_df1b2vector::xinit(dvector&,int& ii){;}
35  void funnel_init_df1b2vector::set_value(const init_df1b2vector&,const int& ii){;}
36  void funnel_init_df1b2vector::set_value(const init_df1b2vector&,const int& ii,
37  const df1b2variable&){;}
38  void funnel_init_df1b2vector::set_index(imatrix&,int& ii){;}
39 */
40 
46 {
47  int mmin=p->indexmin();
48  int mmax=p->indexmax();
49 
50  df1b2vector::allocate(mmin,mmax);
51  for (int i=mmin;i<=mmax;i++)
52  {
53  (*this)(i)=value((*p)(i));
54  }
55  //cout << "HERE" << endl;
56 }
Description not yet available.
const df1b2vector * p
Definition: df1b2fnl.h:165
int indexmin(void) const
Definition: df1b2fun.h:969
Description not yet available.
virtual void allocate(void)
Description not yet available.
Definition: f1b2fnl4.cpp:45
int indexmax(void) const
Definition: df1b2fun.h:970
dvector value(const df1_one_vector &v)
Definition: df11fun.cpp:69
void allocate(void)
Initialize df1b2vector to empty.
Definition: f1b2vc1.cpp:627