44 int mmin =d.indexmin();
45 int mmax =d.indexmax();
49 for (i=mmin;i<=mmax;i++)
51 sz1(i)=d(i).
indexmax()-d(i).indexmin()+1;
55 if (sz != v.indexmax()-v.indexmin()+1)
57 cerr <<
"Error in sizes in function"
58 " void fill(const dmatrix& _d,const dvector& v)" <<
endl;
61 int offset=v.indexmin();
62 for (i=mmin;i<=mmax;i++)
64 d(i)=v(offset,offset+sz1(i)-1).shift(d(i).indexmin());
79 int mmin =d.indexmin();
80 int mmax =d.indexmax();
84 for (i=mmin;i<=mmax;i++)
86 sz1(i)=d(i).
indexmax()-d(i).indexmin()+1;
90 if (sz != v.indexmax()-v.indexmin()+1)
92 cerr <<
"Error in sizes in function"
93 " void fill(const dmatrix& _d,const dvector& v)" <<
endl;
96 int offset=v.indexmin();
97 for (i=mmin;i<=mmax;i++)
99 d(i)=v(offset,offset+sz1(i)-1).shift(d(i).indexmin());
#define ADUNCONST(type, obj)
Creates a shallow copy of obj that is not CONST.
Vector of double precision numbers.
prnstream & endl(prnstream &)
Array of integers(int) with indexes from index_min to indexmax.
Description not yet available.
Library of statistic functions.
Class definition of matrix with derivitive information .
void fill(const dmatrix &_d, const dvector &_v)