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 }
Generated on Tue Mar 8 2016 19:51:33 for ADMB Documentation by 1.8.0 |