ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
f1b2fnl4.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id$
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00011 #include <df1b2fnl.h>
00012 #include <adrndeff.h>
00013 
00014 /*
00015 funnel_init_df1b2vector::funnel_init_df1b2vector
00016   (const df1b2_init_bounded_vector & _x)
00017 {
00018   ADUNCONST(df1b2_init_bounded_vector,x)
00019   type=1;
00020   pointer=&x;
00021   int mmin=x.indexmin();
00022   int mmax=x.indexmin();
00023   ind_index=x(mmin).get_ind_index();
00024   vxu.allocate(mmin,mmax);
00025   for (int i=mmin;i<=mmax;i++)
00026   {
00027     vxu(i)=*(x(i).get_u());
00028   }
00029   cout << "HERE" << endl;
00030 }
00031 
00032   void funnel_init_df1b2vector::allocate(void){;}
00033   void funnel_init_df1b2vector::xinit(init_df1b2vector&,int& ii){;}
00034   void funnel_init_df1b2vector::xinit(dvector&,int& ii){;}
00035   void funnel_init_df1b2vector::set_value(const init_df1b2vector&,const int& ii){;}
00036   void funnel_init_df1b2vector::set_value(const init_df1b2vector&,const int& ii,
00037     const df1b2variable&){;}
00038   void funnel_init_df1b2vector::set_index(imatrix&,int& ii){;}
00039 */
00040 
00045 void funnel_init_df1b2vector::allocate(void)
00046 {
00047   int mmin=p->indexmin();
00048   int mmax=p->indexmax();
00049 
00050   df1b2vector::allocate(mmin,mmax);
00051   for (int i=mmin;i<=mmax;i++)
00052   {
00053     (*this)(i)=value((*p)(i));
00054   }
00055   //cout << "HERE" << endl;
00056 }