23 for (
int i=mmin; i<=mmax; ++i)
50 cerr <<
"Warning -- Unable to shallow copy an unallocated dvar6_array.\n";
86 cerr <<
"Warning -- Unable to deallocate an unallocated dvar6_array.\n";
107 cerr <<
"Incompatible bounds in dvar6_array& dvar6_array::operator=(const dvar6_array&)\n";
113 for (
int i=mmin; i<=mmax; ++i)
133 cerr <<
"Incompatible bounds in dvar6_array& dvar6_array::operator=(const d6_array&)\n";
139 for (
int i=mmin; i<=mmax; i++)
157 cerr <<
" Error allocating memory in dvar6_array::allocate" <<
endl;
162 cerr <<
" Error allocating memory in dvar6_array::allocate" <<
endl;
168 for (
int i = min; i <=
max; ++i)
184 cerr <<
"Error allocating memory in dvar5_array contructor" <<
endl;
189 cerr <<
"Error allocating memory in dvar5_array contructor" <<
endl;
195 for (
int i = min; i <=
max; ++i)
211 if (i < indexmin() || i > indexmax())
214 "dvar5_array& dvar6_array::operator()(int i)",
215 indexmin(), indexmax(), i);
229 "dvar5_array& dvar6_array::operator[](int i)",
244 "dvar5_array& dvar6_array::operator()(int i, int j)",
247 return (
t + i)->operator()(j);
254 dvar3_array& dvar6_array::operator ( ) (
int i,
int j,
int k)
256 if (i < indexmin() || i > indexmax())
259 "dvar5_array& dvar6_array::operator()(int i, int j, int k)",
260 indexmin(), indexmax(), i);
262 return (t + i)->operator()(j,k);
274 "dvar_matrix& dvar6_array::operator()(int i, int j, int k, int l)",
277 return (
t + i)->operator()(j,k,l);
289 "dvar_vector& dvar6_array::operator()(int i, int j, int k, int l, int m)",
292 return (
t + i)->operator()(j,k,l,m);
304 "prevariable dvar6_array::operator()(int i, int j, int k, int l, int m, int n)",
307 return (
t + i)->operator()(j,k,l,m,n);
317 { cerr <<
"Error index out of bounds in\n"
318 "dvar5_array& dvar6_array::operator ( )" <<
endl;
331 { cerr <<
"Error index out of bounds in\n"
332 "dvar5_array& dvar6_array::operator []" <<
endl;
345 { cerr <<
"Error hslice index out of bounds in\n"
346 "dvar_matrix& dvar6_array::operator ( )" <<
endl;
349 return (
t + i)->operator()(j);
359 { cerr <<
"Error hslice index out of bounds in\n"
360 "dvar_vector& dvar4_array::operator ( )" <<
endl;
363 return (
t + i)->operator()(j,k);
373 { cerr <<
"Error hslice index out of bounds in\n"
374 "dvar-vector& dvar4_array::operator ( )" <<
endl;
377 return (
t + i)->operator()(j,k,l);
388 { cerr <<
"Error hslice index out of bounds in\n"
389 "prevariable& dvar4_array::operator ( )" <<
endl;
392 return (
t + i)->operator()(j,k,l,m);
404 cerr <<
"Error hslice index out of bounds in\n"
405 "prevariable& dvar4_array::operator ( )" <<
endl;
408 return (
t + i)->operator()(j,k,l,m,n);
427 int nrh,
int ncl,
int nch,
int l5,
int u5,
int l6,
int u6)
429 allocate(hsl,hsu,sl,sh,nrl,nrh,ncl,nch,l5,u5,l6,u6);
442 allocate(hsl,hsu,sl,sh,nrl,nrh,ncl,nch,l5,u5,l6,u6);
450 int nrh,
int ncl,
int nch,
int l5,
int u5,
int l6,
int u6)
454 cerr <<
" Error allocating memory in dvar5_array contructor\n";
459 cerr <<
" Error allocating memory in dvar5_array contructor\n";
464 for (
int i=hsl; i<=hsu; i++)
466 pti->
allocate(sl,sh,nrl,nrh,ncl,nch,l5,u5,l6,u6);
483 cerr <<
" Error allocating memory in dvar5_array contructor\n";
488 cerr <<
" Error allocating memory in dvar5_array contructor\n";
493 for (
int i = hsl; i <= hsu; ++i)
496 ncl(i),nch(i),l5(i),u5(i),l6(i),u6(i));
511 cerr <<
" Error allocating memory in dvar5_array contructor\n";
516 cerr <<
" Error allocating memory in dvar5_array contructor\n";
521 for (
int i = hsl; i <= hsu; ++i)
Base class for dvariable.
dvar5_array & operator[](int i)
void deallocate(void)
Deallocate dvar6_array memory.
Uses polymorphism to get index information from various data types to be used in constructing and all...
Description not yet available.
Description not yet available.
Description not yet available.
unsigned int size() const
~dvar6_array()
Destructor.
Description not yet available.
dvar6_array()
Description not yet available.
void allocate(int hhsl, int hhsu, int hsl, int hsu, int sl, int sh, int nrl, int nrh, int ncl, int nch)
Allocate dvar5_array with dimensions [hsl to hsu] x [sl to sh] x [nrl to nrh] x [ncl to nch] x [l5 to...
prnstream & endl(prnstream &)
dvar5_array & operator()(int i)
Description not yet available.
void allocate(void)
Description not yet available.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Description not yet available.
#define ADMB_ARRAY_BOUNDS_ERROR(message, function, lower_bounds, upper_bounds, index)
void initialize()
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Class definition of matrix with derivitive information .
Description not yet available.
void shallow_copy(const dvar6_array &)
Shallow copy other data structure pointers.
void initialize()
Description not yet available.
dvar6_array & operator=(const d6_array &)
Description not yet available.