23 for (
int i=mmin; i<=mmax; i++)
40 cerr <<
" Error allocating memory in d6_array contructor\n";
43 unsigned int ss =
size();
46 cerr <<
" Error allocating memory in d6_array contructor\n";
51 for (
int i = l7; i <= u7; ++i)
79 cerr <<
"Warning -- Unable to shallow copy an unallocated dvar7_array.\n";
115 cerr <<
"Warning -- Unable to deallocate an unallocated dvar7_array.\n";
140 cerr <<
"Incompatible bounds in"
141 " dvar5_array& dvar5_array:: operator = (const dvar5_array& m)"
148 for (
int i=mmin; i<=mmax; i++)
168 cerr <<
"Incompatible bounds in"
169 " dvar7_array& dvar7_array:: operator = (const d7_array& m)"
176 for (
int i=mmin; i<=mmax; i++)
197 cerr <<
" Error allocating memory in dvar6_array contructor" <<
endl;
199 unsigned int ss =
size();
202 cerr <<
" Error allocating memory in dvar6_array contructor" <<
endl;
208 for (
int i = mmin; i <= mmax; ++i)
226 cerr <<
" Error allocating memory in dvar6_array contructor" <<
endl;
228 unsigned int ss =
size();
231 cerr <<
" Error allocating memory in dvar6_array contructor" <<
endl;
237 for (
int i = mmin; i <= mmax; ++i)
253 if (i < indexmin() || i > indexmax())
256 "dvar6_array& dvar7_array::operator () (int i)",
257 indexmin(), indexmax(), i);
271 "dvar6_array& dvar7_array::operator [] (int i)",
286 "dvar5_array& dvar7_array::operator ( ) (int i, int j)",
289 return (
t + i)->operator()(j);
301 "dvar4_array& dvar7_array::operator ( ) (int i, int j, int k)",
304 return (
t + i)->operator()(j,k);
316 "dvar3_array& dvar7_array::operator ( ) (int i, int j, int k, int l)",
319 return (
t + i)->operator()(j,k,l);
331 "dvar_matrix& dvar7_array::operator()(int i, int j, int k, int l, int m)",
334 return (
t + i)->operator()(j,k,l,m);
341 dvar_vector& dvar7_array::operator ( ) (
int i,
int j,
int k,
int l,
int m,
int n)
343 if (i < indexmin() || i > indexmax())
346 "dvar_vector& dvar7_array::operator()(int i,int j, int k, int l, int m, int n)",
347 indexmin(), indexmax(), i);
349 return (t + i)->operator()(j,k,l,m,n);
361 "dvar7_array::operator()(int i, int j, int k, int l, int m, int n, int _p)",
364 return (
t + i)->operator()(j,k,l,m,n,_p);
374 { cerr <<
"Error index out of bounds in\n"
375 "dvar6_array& dvar7_array::operator ( )" <<
endl;
388 { cerr <<
"Error index out of bounds in\n"
389 "dvar5_array& dvar6_array::operator []" <<
endl;
402 { cerr <<
"Error hslice index out of bounds in\n"
403 "dvar3_array& dvar7_array::operator ( )" <<
endl;
406 return (
t + i)->operator()(j);
416 { cerr <<
"Error hslice index out of bounds in\n"
417 "dvar_matrix& dvar7_array::operator ( )" <<
endl;
420 return (
t + i)->operator()(j,k);
430 { cerr <<
"Error hslice index out of bounds in\n"
431 "dvar-vector& dvar7_array::operator ( )" <<
endl;
434 return (
t + i)->operator()(j,k,l);
444 { cerr <<
"Error hslice index out of bounds in\n"
445 "prevariable& dvar7_array::operator ( )" <<
endl;
448 return (
t + i)->operator()(j,k,l,m);
459 { cerr <<
"Error hslice index out of bounds in\n"
460 "prevariable& dvar7_array::operator ( )" <<
endl;
463 return (
t + i)->operator()(j,k,l,m,n);
474 { cerr <<
"Error hslice index out of bounds in\n"
475 "prevariable& dvar7_array::operator ( )" <<
endl;
478 return (
t + i)->operator()(j,k,l,m,n,_p);
487 int nrh,
int ncl,
int nch,
int l5,
int u5,
int l6,
int u6,
int l7,
int u7)
489 allocate(hsl,hsu,sl,sh,nrl,nrh,ncl,nch,l5,u5,l6,u6,l7,u7);
503 allocate(hsl,hsu,sl,sh,nrl,nrh,ncl,nch,l5,u5,l6,u6,l7,u7);
510 int nrh,
int ncl,
int nch,
int l5,
int u5,
int l6,
int u6,
int l7,
int u7)
514 cerr <<
" Error allocating memory in dvar6_array contructor\n";
517 unsigned int ss =
size();
520 cerr <<
" Error allocating memory in dvar6_array contructor\n";
525 for (
int i = hsl; i <= hsu; ++i)
527 pti->
allocate(sl,sh,nrl,nrh,ncl,nch,l5,u5,l6,u6,l7,u7);
546 cerr <<
" Error allocating memory in dvar6_array contructor\n";
548 unsigned int ss =
size();
551 cerr <<
" Error allocating memory in dvar6_array contructor\n";
558 for (
int i=il; i<=iu; i++)
561 ncl(i),nch(i),l5(i),u5(i),l6(i),u6(i),l7(i),u7(i));
void allocate(int hhsl, int hhsu)
Allocate vector of dvar5_array with dimension [hsl to hsu].
Base class for dvariable.
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.
void shallow_copy(const dvar7_array &)
Shallow copy other data structure pointers.
Description not yet available.
Description not yet available.
dvar6_array & operator[](int i)
dvar6_array & operator()(int i)
Description not yet available.
~dvar7_array()
Description not yet available.
prnstream & endl(prnstream &)
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 allocate(void)
Description not yet available.
dvar7_array & operator=(const d7_array &)
Description not yet available.
Class definition of matrix with derivitive information .
void deallocate(void)
Deallocate dvar7_array memory.
unsigned int size() const
Description not yet available.
dvar7_array()
Description not yet available.
void initialize()
Description not yet available.
void initialize()
Description not yet available.