ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
fvar_a61.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 <admodel.h>
00012 
00017  dvar_vector::dvar_vector(const param_init_number_vector& _t)
00018  {
00019    param_init_number_vector& t=(param_init_number_vector&) (_t);
00020    int i;
00021    va=NULL;
00022    allocate(t.indexmin(),t.indexmax());
00023    initialize();
00024    for ( i=indexmin(); i<=indexmax(); i++)
00025    {
00026      (*this)(i)=t(i);
00027    }
00028  }
00029 
00034  dvar_vector::dvar_vector(const param_init_bounded_number_vector& _t)
00035  {
00036    param_init_bounded_number_vector& t=(param_init_bounded_number_vector&) (_t);
00037    int i;
00038    va=NULL;
00039    allocate(t.indexmin(),t.indexmax());
00040    initialize();
00041    for ( i=indexmin(); i<=indexmax(); i++)
00042    {
00043      (*this)(i)=t(i);
00044    }
00045  }