24 int mmin=
x.indexmin();
25 int mmax=
x.indexmax();
29 for (
int i=mmin;i<=mmax;i++)
46 int mmin=
x.indexmin();
47 int mmax=
x.indexmax();
51 for (
int i=mmin;i<=mmax;i++)
68 int mmin=
x.indexmin();
69 int mmax=
x.indexmax();
73 for (
int i=mmin;i<=mmax;i++)
87 int mmin=
x.indexmin();
88 int mmax=
x.indexmax();
92 for (
int i=mmin;i<=mmax;i++)
106 int mmin=
x.indexmin();
107 int mmax=
x.indexmax();
111 for (
int i=mmin;i<=mmax;i++)
125 int mmin=
x.indexmin();
126 int mmax=
x.indexmax();
130 for (
int i=mmin;i<=mmax;i++)
144 int mmin=
x.indexmin();
145 int mmax=
x.indexmax();
149 for (
int i=mmin;i<=mmax;i++)
163 int mmin=
x.indexmin();
164 int mmax=
x.indexmax();
168 for (
int i=mmin;i<=mmax;i++)
182 int mmin=
x.indexmin();
183 int mmax=
x.indexmax();
187 for (
int i=mmin;i<=mmax;i++)
204 int mmin=
x.indexmin();
205 int mmax=
x.indexmax();
209 for (
int i=mmin;i<=mmax;i++)
226 int mmin=
x.indexmin();
227 int mmax=
x.indexmax();
231 for (
int i=mmin;i<=mmax;i++)
248 int mmin=
x.indexmin();
249 int mmax=
x.indexmax();
253 for (
int i=mmin;i<=mmax;i++)
269 int mmin=
x.indexmin();
270 int mmax=
x.indexmax();
272 for (
int i=mmin;i<=mmax;i++)
288 int mmin=
x.indexmin();
289 int mmax=
x.indexmax();
291 for (
int i=mmin;i<=mmax;i++)
307 int mmin=
x.indexmin();
308 int mmax=
x.indexmax();
310 for (
int i=mmin;i<=mmax;i++)
326 int mmin=
x.indexmin();
327 int mmax=
x.indexmax();
329 for (
int i=mmin;i<=mmax;i++)
346 for (
int i=mmin;i<=mmax;i++)
363 for (
int i=mmin;i<=mmax;i++)
380 for (
int i=mmin;i<=mmax;i++)
396 for (
int i=mmin;i<=mmax;i++)
412 int mmin=
x.indexmin();
413 int mmax=
x.indexmax();
415 for (
int i=mmin;i<=mmax;i++)
431 int mmin=
x.indexmin();
432 int mmax=
x.indexmax();
434 for (
int i=mmin;i<=mmax;i++)
451 for (
int i=mmin;i<=mmax;i++)
458 #if !defined(OPT_LIB)
468 "df1b2variable& df1b2matrix::operator () (int i, int j) const",
474 "df1b2variable& df1b2matrix::operator () (int i, int j) const",
489 "df1b2vector& df1b2matrix::operator [] (int i) const",
495 "df1b2vector& df1b2matrix::operator [] (int i) const",
510 "df1b2vector& df1b2matrix::operator () (int i) const",
516 "df1b2vector& df1b2matrix::operator () (int i) const",
531 "df1b2variable& df1b2vector::operator () (int i) const",
537 "df1b2variable& df1b2vector::operator () (int i) const",
572 "df1b2variable& df1b2vector::operator [] (int i) const",
578 "df1b2variable& df1b2vector::operator [] (int i) const",
612 for (
int i = lb; i <= ub; i++)
667 int sz = ub < lb ? 0 : ub - lb + 1;
680 cerr <<
"Error trying to allocate memory for df1b2vector\n";
692 ind_1 =
adptr_diff((*
this)(mmin+1).get_u(), (*
this)(mmin).get_u());
737 unsigned int sz =
static_cast<unsigned int>(ub < lb ? 0 : ub - lb + 1);
743 cerr <<
"Error trying to allocate memory for df1b2vector\n";
822 cerr <<
"Taking a subvector of an unallocated dvector"<<
endl;
835 cout <<
"HERE" <<
endl;
844 cout <<
"HERE" <<
endl;
853 cout <<
"HERE" <<
endl;
d3_array tan(const d3_array &arr3)
Returns d3_array results with computed tan from elements in arr3.
void * trueptr
Address of first element in the vector.
df1b2vector & operator[](int i) const
int allocated(void) const
Returns 1 (TRUE) if memory is allocated.
void ADMB_getcallindex(int)
d3_array operator-(const d3_array &a, const d3_array &b)
Returns d3_array results with computed elements addition of a(i, j, k) + b(i, j, k).
#define ADUNCONST(type, obj)
Creates a shallow copy of obj that is not CONST.
Vector of double precision numbers.
int indexmin() const
Get minimum valid index.
void copy(const df1b2vector &)
Description not yet available.
Description not yet available.
int adptr_diff(void *x, void *y)
d3_array operator+(const d3_array &a, const d3_array &b)
Returns d3_array results with computed elements addition of a(i, j, k) + b(i, j, k).
d3_array sin(const d3_array &arr3)
Returns d3_array results with computed sin from elements in arr3.
#define AD_ALLOCATE(ptr, type, n, classname)
df1b2variable & operator()(int i) const
df1b2variable & operator()(int i, int j) const
Description not yet available.
prnstream & endl(prnstream &)
d3_array sqrt(const d3_array &arr3)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
void noallocate(int lib, int ub)
Description not yet available.
~df1b2vector()
Destructor.
int indexmax() const
Get maximum valid index.
d3_array exp(const d3_array &arr3)
Returns d3_array results with computed exp from elements in arr3.
void deallocate(void)
If no other copies exists, free allocated memory.
unsigned int ncopies
Copy counter to enable shallow copies.
#define ADMB_ARRAY_BOUNDS_ERROR(message, function, lower_bounds, upper_bounds, index)
void check_shape(const df1b2vector &x, const df1b2vector &y, const char *s)
Description not yet available.
df1b2variable & operator[](int i) const
Holds "shape" information for vector objects.
df1b2vector(void)
Default constructor.
d3_array cos(const d3_array &arr3)
Returns d3_array results with computed cos from elements in arr3.
df1b2vector & operator/=(const df1b2vector &x)
Description not yet available.
Description not yet available.
df1b2vector & operator*=(const df1b2vector &x)
Description not yet available.
Description not yet available.
Description not yet available.
void allocate(void)
Initialize df1b2vector to empty.
d3_array log(const d3_array &arr3)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
df1b2vector & operator-=(const df1b2vector &x)
Description not yet available.
df1b2vector & operator+=(const df1b2vector &x)
Description not yet available.