17 ofstream& ofs=(ofstream&)_ofs;
34 ofstream& ofs=(ofstream&)_ofs;
38 ofs << setw(precision+6) << setprecision(precision) << *
this <<
endl;
51 ofstream& ofs=(ofstream&)_ofs;
52 ofs << setw(precision+6) << setprecision(precision) <<
dvar_vector(*
this) <<
endl;
64 ofstream& ofs=(ofstream&)_ofs;
65 ofs << setw(precision+6) << setprecision(precision) <<
dvar_vector(*
this) <<
endl;
77 ofstream& ofs = (ofstream&)_ofs;
78 ofs << setw(precision+6) << setprecision(precision) <<
dvar_matrix(*
this) <<
endl;
97 << setw(precision+6) << setprecision(precision) << *
this <<
" "
98 << setw(precision+6) << setprecision(precision) << g(offset++) <<
endl;
110 const ofstream& _ofs,
118 for (
int i=mmin;i<=mmax;i++)
122 << setw(precision+6) << setprecision(precision) << (*this)(i) <<
" "
123 << setw(precision+6) << setprecision(precision) << g(offset++) <<
endl;
136 const ofstream& _ofs,
144 for (
int i=mmin;i<=mmax;i++)
148 << setw(precision+6) << setprecision(precision) << (*this)(i) <<
" "
149 << setw(precision+6) << setprecision(precision) << g(offset++) <<
endl;
162 const ofstream& _ofs,
168 ofs <<
"ParName"<<
" "<<
"Value"<<
" " <<
"Gradient"<<
endl;
188 const ofstream& _ofs,
196 for (
int i=rmin;i<=rmax;i++)
200 for (
int j=cmin;j<=cmax;j++)
203 <<
"(" << i <<
"," << j <<
") "
204 << setw(precision+6) << setprecision(precision) << (*this)(i,j) <<
" "
205 << setw(precision+6) << setprecision(precision) << g(offset++) <<
endl;
dvar_vector()
Default constructor.
int withinbound(int lb, int n, int ub)
#define ADUNCONST(type, obj)
Creates a shallow copy of obj that is not CONST.
Vector of double precision numbers.
virtual void save_value(ofstream &ofs)
virtual void save_value(const ofstream &ofs, int prec)
Write values of param_init_matrix into output stream _ofs.
dvariable()
Default constructor.
virtual const char * label(void)
virtual void save_value(ofstream &ofs)
prnstream & endl(prnstream &)
preshowpoint setshowpoint(void)
Description not yet available.
virtual void save_value(const ofstream &ofs, int prec)
Write values of param_init_number into output stream _ofs.
Description not yet available.
static int num_initial_params
virtual const char * label(void)
dvar_matrix()
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
virtual void save_value(ofstream &ofs)=0
virtual const char * label(void)
virtual const char * label(void)
static void save_all(const ofstream &_ofs, int prec, const dvector &g)
Write all values of g into output stream _ofs.
static adlist_ptr varsptr