ADMB Documentation
-a65f1c97
|
Description not yet available. More...
#include <fvar.hpp>
Public Member Functions | |
d3_array (void) | |
Default constructor. More... | |
d3_array (int sl, int sh, int nrl, int nrh, int ncl, int nch) | |
Description not yet available. More... | |
d3_array (int sl, int sh, int nrl, int nrh) | |
d3_array (int sl, int sh, const index_type &nrl, const index_type &nrh) | |
d3_array (int sl, int sh) | |
Construct d3_array with a vector of empty dmatrix with dimension [nrl to nrh]. More... | |
d3_array (const d3_array_position &) | |
Construct d3_array with a vector of empty dmatrix using position. More... | |
d3_array (int sl, int sh, int nrl, int nrh, const ivector &ncl, int nch) | |
Description not yet available. More... | |
d3_array (const ad_integer &sl, const ad_integer &sh, const index_type &nrl, const index_type &nrh, const index_type &ncl, const index_type &nch) | |
Description not yet available. More... | |
d3_array (int sl, int sh, const ivector &nrl, const ivector &nrh, const imatrix &ncl, const imatrix &nch) | |
Description not yet available. More... | |
d3_array (int sl, int sh, const ivector &nrl, const ivector &nrh, int ncl, const imatrix &nch) | |
Description not yet available. More... | |
d3_array (int sl, int sh, int nrl, const ivector &nrh, int ncl, const imatrix &nch) | |
Description not yet available. More... | |
d3_array (int sl, int sh, const ivector &nrl, const ivector &nrh, const ivector &ncl, const ivector &nch) | |
d3_array (int sl, int sh, int nrl, int nrh, const ivector &ncl, const ivector &nch) | |
Description not yet available. More... | |
d3_array (int sl, int sh, int nrl, const ivector &nrh, int ncl, const ivector &nch) | |
Description not yet available. More... | |
d3_array (int sl, int sh, int nrl, const ivector &nrh, int ncl, int nch) | |
Description not yet available. More... | |
d3_array (const d3_array &m2) | |
Copy constructor. More... | |
~d3_array () | |
Destructor. More... | |
void | allocate (const ad_integer &sl, const ad_integer &sh, const index_type &nrl, const index_type &nrh, const index_type &ncl, const index_type &nch) |
Allocate array of matrices with dimensions [sl to sh] x [nrl to nrh] x [ncl to nch]. More... | |
void | allocate (const dvar3_array &) |
Allocate d3_array with same dimensions as d3v. More... | |
void | allocate (const d3_array &d3v) |
Allocate d3_array with the same dimensions as other. More... | |
void | allocate (int sl, int sh, int nrl, int nrh, int ncl, int nch) |
Allocate vector of matrices with dimensions [sl to sh] x ([nrl to nrh] x [ncl to nch]) More... | |
void | allocate (int sl, int sh, int nrl, int nrh) |
Allocate vector of matrices having empty columns and with dimensions [sl to sh] x [nrl to nrh]. More... | |
void | allocate (int sl, int sh, const index_type &nrl, const index_type &nrh) |
Allocate vector of matrices having empty columns and with dimensions [sl to sh] x [nrl to nrh]. More... | |
void | allocate (int sl, int sh) |
Allocate vector [sl to sh] of empty matrices. More... | |
void | allocate (int sl, int sh, int nrl, int nrh, const ivector &ncl, int nch) |
Allocate vector of matrices with dimensions [sl to sh] x ([nrl to nrh] x [ncl to nch]) where ncl is a vector of indexes. More... | |
void | allocate (int sl, int sh, const ivector &nrl, const ivector &nrh, const imatrix &ncl, const imatrix &nch) |
void | allocate (int sl, int sh, int nrl, const ivector &nrh, int ncl, const imatrix &nch) |
Allocate d3_array with dimensions [sl to sh] x [nrl to nrh] x [ncl to nch]. More... | |
void | allocate (int sl, int sh, const ivector &nrl, const ivector &nrh, int ncl, const imatrix &nch) |
Description not yet available. More... | |
void | allocate (int sl, int sh, const ivector &nrl, const ivector &nrh, int ncl, int nch) |
Allocate vector of matrices with dimensions [sl to sh] x ([nrl to nrh] x [ncl to nch]) where nrh and nrl are vectors of indexes. More... | |
void | allocate (int sl, int sh, const ivector &nrl, int nrh, int ncl, int nch) |
Allocate vector of matrices with dimensions [sl to sh] x ([nrl to nrh] x [ncl to nch]) where nrh and nrl are vectors of indexes. More... | |
void | allocate (int sl, int sh, int nrl, const ivector &nrh, int ncl, int nch) |
Allocate vector of matrices with dimensions [sl to sh] x ([nrl to nrh] x [ncl to nch]) where nrh and nrl are vectors of indexes. More... | |
void | allocate (int sl, int sh, const ivector &nrl, const ivector &nrh, const ivector &ncl, const ivector &nch) |
Allocate vector of matrices with dimensions [sl to sh] x ([nrl to nrh] x [ncl to nch]) where nrh and nrl are vectors of indexes. More... | |
void | allocate (int sl, int sh, int nrl, const ivector &nrh, int ncl, const ivector &nch) |
Allocate vector of matrices with dimensions [sl to sh] x ([nrl to nrh] x [ncl to nch]) where nrh and nrl are vectors of indexes. More... | |
void | allocate (int sl, int sh, int nrl, int nrh, const ivector &ncl, const ivector &nch) |
Allocate vector of matrices with dimensions [sl to sh] x ([nrl to nrh] x [ncl to nch]) where nrh and nrl are vectors of indexes with dimensions [sl to sh]. More... | |
void | allocate (int sl, int sh, int nrl, int nrh, int ncl, const ivector &nch) |
Allocate vector of matrices with dimensions [sl to sh] x ([nrl to nrh] x [ncl to nch]) where nrh is a vector of indexes. More... | |
void | allocate (void) |
Does NOT allocate, but initializes empty d3_array. More... | |
dmatrix * | begin () const |
int | colmax (void) const |
int | colmin (void) const |
int | colsize (void) const |
void | deallocate (void) |
Deallocates d3_array memory. More... | |
dmatrix & | elem (int k) |
const dmatrix & | elem (int k) const |
dmatrix * | end () const |
void | fill_randcau (const random_number_generator &rng) |
Description not yet available. More... | |
void | fill_randn (const random_number_generator &rng) |
Description not yet available. More... | |
void | fill_randn (long int &n) |
Fill multi array with random numbers. More... | |
void | fill_randn_ni (long int &n) |
Description not yet available. More... | |
void | fill_randu (const random_number_generator &rng) |
Description not yet available. More... | |
void | fill_randu (long int &n) |
Fill multi array with random numbers. More... | |
void | fill_randu_ni (long int &n) |
Description not yet available. More... | |
double | fill_seqadd (double, double) |
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More... | |
unsigned int | get_ncopies () const |
int | indexmax () const |
int | indexmin () const |
void | initialize (int sl, int sh, int nrl, const ivector &nrh, int ncl, const ivector &nch) |
void | initialize (void) |
Initializes all elements of d3_array to zero. More... | |
int | operator! (void) const |
double & | operator() (int k, int i, int j) |
dvector & | operator() (int k, int i) |
dmatrix & | operator() (int i) |
const double & | operator() (int k, int i, int j) const |
const dvector & | operator() (int k, int i) const |
const dmatrix & | operator() (int i) const |
void | operator/= (double d) |
Divide each element of d3_array by d. More... | |
d3_array & | operator= (const d3_array &m1) |
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More... | |
d3_array & | operator= (double x) |
Assign elements of d3_array to value. More... | |
dmatrix & | operator[] (int i) |
const dmatrix & | operator[] (int i) const |
int | rowmax (void) const |
int | rowmin (void) const |
int | rowsize (void) const |
void | save_d3_array_position () const |
Description not yet available. More... | |
void | save_d3_array_value () const |
Description not yet available. More... | |
void | shallow_copy (const d3_array &) |
Shallow copy other data structure pointers. More... | |
int | slicemax () const |
int | slicemin () const |
unsigned int | slicesize () const |
d3_array | sub (int, int) |
Description not yet available. More... | |
Private Attributes | |
three_array_shape * | shape |
dmatrix * | t |
Friends | |
class | d4_array |
d3_array | value (const dvar3_array &ar) |
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More... | |
d3_array::d3_array | ( | void | ) |
Default constructor.
Definition at line 20 of file d3arr10.cpp.
Referenced by data_3array::allocate().
d3_array::d3_array | ( | int | sl, |
int | sh, | ||
int | nrl, | ||
int | nrh, | ||
int | ncl, | ||
int | nch | ||
) |
d3_array::d3_array | ( | int | sl, |
int | sh, | ||
int | nrl, | ||
int | nrh | ||
) |
d3_array::d3_array | ( | int | sl, |
int | sh, | ||
const index_type & | nrl, | ||
const index_type & | nrh | ||
) |
d3_array::d3_array | ( | int | nrl, |
int | nrh | ||
) |
d3_array::d3_array | ( | const d3_array_position & | position | ) |
Construct d3_array with a vector of empty dmatrix using position.
position | d3_array_position |
d3_array::d3_array | ( | int | sl, |
int | sh, | ||
int | nrl, | ||
int | nrh, | ||
const ivector & | ncl, | ||
int | nch | ||
) |
d3_array::d3_array | ( | const ad_integer & | sl, |
const ad_integer & | sh, | ||
const index_type & | nrl, | ||
const index_type & | nrh, | ||
const index_type & | ncl, | ||
const index_type & | nch | ||
) |
d3_array::d3_array | ( | int | sl, |
int | sh, | ||
const ivector & | nrl, | ||
const ivector & | nrh, | ||
const ivector & | ncl, | ||
const ivector & | nch | ||
) |
d3_array::d3_array | ( | int | sl, |
int | sh, | ||
int | nrl, | ||
const ivector & | nrh, | ||
int | ncl, | ||
int | nch | ||
) |
d3_array::d3_array | ( | const d3_array & | m2 | ) |
void d3_array::allocate | ( | const ad_integer & | sl, |
const ad_integer & | sh, | ||
const index_type & | nrl, | ||
const index_type & | nrh, | ||
const index_type & | ncl, | ||
const index_type & | nch | ||
) |
Allocate array of matrices with dimensions [sl to sh] x [nrl to nrh] x [ncl to nch].
sl | lower vector index |
sh | upper vector index |
nrl | lower matrix row index |
nrl | upper matrix row index |
ncl | lower matrix column index |
ncl | upper matrix column index |
Definition at line 327 of file indextyp.cpp.
Referenced by d4_array::allocate(), cos(), cube(), elem_div(), elem_prod(), exp(), log(), mfexp(), operator*(), operator+(), operator-(), operator/(), pow(), sin(), sqr(), sqrt(), square(), tan(), and value().
void d3_array::allocate | ( | const dvar3_array & | d3v | ) |
Allocate d3_array with same dimensions as d3v.
d3v | a dvar3_array |
Definition at line 36 of file f3arr3.cpp.
void d3_array::allocate | ( | const d3_array & | other | ) |
void d3_array::allocate | ( | int | sl, |
int | sh, | ||
int | nrl, | ||
int | nrh, | ||
int | ncl, | ||
int | nch | ||
) |
Allocate vector of matrices with dimensions [sl to sh] x ([nrl to nrh] x [ncl to nch])
sl | lower index of vector |
sh | upper index of vector |
nrl | lower row index for matrix |
nrh | upper row index for matrix |
ncl | lower column index for matrix |
nch | upper column index for matrix |
void d3_array::allocate | ( | int | sl, |
int | sh, | ||
int | nrl, | ||
int | nrh | ||
) |
void d3_array::allocate | ( | int | sl, |
int | sh, | ||
const index_type & | nrl, | ||
const index_type & | nrh | ||
) |
void d3_array::allocate | ( | int | sl, |
int | sh | ||
) |
void d3_array::allocate | ( | int | sl, |
int | sh, | ||
int | nrl, | ||
int | nrh, | ||
const ivector & | ncl, | ||
int | nch | ||
) |
Allocate vector of matrices with dimensions [sl to sh] x ([nrl to nrh] x [ncl to nch]) where ncl is a vector of indexes.
sl | lower index of vector |
sh | upper index of vector |
nrl | lower row index for matrix |
nrh | upper row index for matrix |
ncl | vector of lower column indexes for matrix |
nch | upper column index for matrix |
void d3_array::allocate | ( | int | sl, |
int | sh, | ||
int | nrl, | ||
const ivector & | nrh, | ||
int | ncl, | ||
const imatrix & | nch | ||
) |
Allocate d3_array with dimensions [sl to sh] x [nrl to nrh] x [ncl to nch].
sl | lower index of vector |
sh | upper index of vector |
nrl | vector of lower row indexes for matrix |
nrh | vector of upper row indexes for matrix |
ncl | vector of lower column indexes for matrix |
nch | vector of upper column indexes for matrix |
void d3_array::allocate | ( | int | sl, |
int | sh, | ||
const ivector & | nrl, | ||
const ivector & | nrh, | ||
int | ncl, | ||
int | nch | ||
) |
Allocate vector of matrices with dimensions [sl to sh] x ([nrl to nrh] x [ncl to nch]) where nrh and nrl are vectors of indexes.
sl | lower index of vector |
sh | upper index of vector |
nrl | vector of lower row indexes for matrix |
nrh | vector of upper row indexes for matrix |
ncl | lower column index for matrix |
nch | upper column index for matrix |
void d3_array::allocate | ( | int | sl, |
int | sh, | ||
const ivector & | nrl, | ||
int | nrh, | ||
int | ncl, | ||
int | nch | ||
) |
Allocate vector of matrices with dimensions [sl to sh] x ([nrl to nrh] x [ncl to nch]) where nrh and nrl are vectors of indexes.
sl | lower index of vector |
sh | upper index of vector |
nrl | vector of lower row indexes for matrix |
nrh | upper row index for matrix |
ncl | lower column index for matrix |
nch | upper column index for matrix |
void d3_array::allocate | ( | int | sl, |
int | sh, | ||
int | nrl, | ||
const ivector & | nrh, | ||
int | ncl, | ||
int | nch | ||
) |
Allocate vector of matrices with dimensions [sl to sh] x ([nrl to nrh] x [ncl to nch]) where nrh and nrl are vectors of indexes.
sl | lower index of vector |
sh | upper index of vector |
nrl | lower row index for matrix |
nrh | vector of upper row indexes for matrix |
ncl | lower column index for matrix |
nch | upper column index for matrix |
void d3_array::allocate | ( | int | sl, |
int | sh, | ||
const ivector & | nrl, | ||
const ivector & | nrh, | ||
const ivector & | ncl, | ||
const ivector & | nch | ||
) |
Allocate vector of matrices with dimensions [sl to sh] x ([nrl to nrh] x [ncl to nch]) where nrh and nrl are vectors of indexes.
sl | lower index of vector |
sh | upper index of vector |
nrl | vector of lower row indexes for matrix |
nrh | vector of upper row indexes for matrix |
ncl | vector of lower column indexes for matrix |
nch | vector of upper column indexes for matrix |
void d3_array::allocate | ( | int | sl, |
int | sh, | ||
int | nrl, | ||
const ivector & | nrh, | ||
int | ncl, | ||
const ivector & | nch | ||
) |
Allocate vector of matrices with dimensions [sl to sh] x ([nrl to nrh] x [ncl to nch]) where nrh and nrl are vectors of indexes.
sl | lower index of vector |
sh | upper index of vector |
nrl | lower row index for matrix |
nrh | vector of upper row indexes for matrix |
ncl | upper column index for matrix |
nch | vector of upper column indexes for matrix |
void d3_array::allocate | ( | int | sl, |
int | sh, | ||
int | nrl, | ||
int | nrh, | ||
const ivector & | ncl, | ||
const ivector & | nch | ||
) |
Allocate vector of matrices with dimensions [sl to sh] x ([nrl to nrh] x [ncl to nch]) where nrh and nrl are vectors of indexes with dimensions [sl to sh].
sl | lower index of vector |
sh | upper index of vector |
nrl | lower row index for matrix |
nrh | upper row index for matrix |
ncl | vector of lower column indexes for matrix |
nch | vector of upper column indexes for matrix |
void d3_array::allocate | ( | int | sl, |
int | sh, | ||
int | nrl, | ||
int | nrh, | ||
int | ncl, | ||
const ivector & | nch | ||
) |
Allocate vector of matrices with dimensions [sl to sh] x ([nrl to nrh] x [ncl to nch]) where nrh is a vector of indexes.
sl | lower index of vector |
sh | upper index of vector |
nrl | lower row index for matrix |
nrh | upper row index for matrix |
ncl | lower column index for matrix |
nch | vector of upper column indexes for matrix |
void d3_array::allocate | ( | void | ) |
Does NOT allocate, but initializes empty d3_array.
Definition at line 11 of file d3arr10.cpp.
Referenced by named_d3_array::allocate(), data_3array::allocate(), dll_data_3array::allocate(), allocate(), d3_array(), deallocate(), and shallow_copy().
|
inline |
Definition at line 3809 of file fvar.hpp.
Referenced by end(), initialize(), and sum().
|
inline |
Definition at line 3839 of file fvar.hpp.
Referenced by colsize(), and dll_data_3array::~dll_data_3array().
|
inline |
Definition at line 3835 of file fvar.hpp.
Referenced by colsize(), and dll_data_3array::~dll_data_3array().
void d3_array::deallocate | ( | void | ) |
|
inline |
Definition at line 3870 of file fvar.hpp.
Referenced by fill_randcau(), fill_randn(), fill_randn_ni(), fill_randu(), fill_randu_ni(), operator=(), dvar3_array::operator=(), and sum().
|
inline |
Definition at line 3813 of file fvar.hpp.
Referenced by initialize(), and sum().
void d3_array::fill_randcau | ( | const random_number_generator & | rng | ) |
void d3_array::fill_randn | ( | const random_number_generator & | rng | ) |
void d3_array::fill_randn | ( | long int & | n | ) |
void d3_array::fill_randn_ni | ( | long int & | n | ) |
void d3_array::fill_randu | ( | const random_number_generator & | rng | ) |
void d3_array::fill_randu | ( | long int & | n | ) |
void d3_array::fill_randu_ni | ( | long int & | n | ) |
double d3_array::fill_seqadd | ( | double | initial, |
double | offset | ||
) |
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Fills d3_array with a sequence of values starting with initial and incrementing with offset.
initial | value |
offset | value |
Definition at line 15 of file d3arr9.cpp.
|
inline |
Definition at line 3822 of file fvar.hpp.
Referenced by dvar3_array::allocate(), fill_seqadd(), function_minimizer::get_bigS(), function_minimizer::hess_routine_noparallel_random_effects(), operator*(), operator>>(), DF_FILE::restore_d3_array_value(), DF_FILE::save_d3_array_position(), DF_FILE::save_d3_array_value(), sub_unallocated(), sum(), and dll_data_3array::~dll_data_3array().
|
inline |
Definition at line 3818 of file fvar.hpp.
Referenced by allocate(), dvar3_array::allocate(), deallocate(), fill_seqadd(), function_minimizer::get_bigS(), function_minimizer::hess_routine_noparallel_random_effects(), operator*(), operator>>(), DF_FILE::restore_d3_array_value(), DF_FILE::save_d3_array_position(), DF_FILE::save_d3_array_value(), sub_unallocated(), sum(), and dll_data_3array::~dll_data_3array().
void d3_array::initialize | ( | int | sl, |
int | sh, | ||
int | nrl, | ||
const ivector & | nrh, | ||
int | ncl, | ||
const ivector & | nch | ||
) |
Referenced by check_third_derivatives(), and d4_array::initialize().
void d3_array::initialize | ( | void | ) |
Initializes all elements of d3_array to zero.
Definition at line 705 of file d3arr.cpp.
Referenced by d3_array().
|
inline |
|
inline |
|
inline |
|
inline |
void d3_array::operator/= | ( | double | d | ) |
Divide each element of d3_array by d.
Definition at line 33 of file d3arr2b.cpp.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Assign element values to d3_array.
values | d3_array |
Definition at line 82 of file d3arr8.cpp.
Referenced by named_d3_array::operator=(), and dll_data_3array::operator=().
d3_array & d3_array::operator= | ( | double | value | ) |
Assign elements of d3_array to value.
value | double |
Definition at line 107 of file d3arr8.cpp.
|
inline |
|
inline |
Definition at line 3847 of file fvar.hpp.
Referenced by rowsize(), and dll_data_3array::~dll_data_3array().
|
inline |
Definition at line 3843 of file fvar.hpp.
Referenced by rowsize(), and dll_data_3array::~dll_data_3array().
|
inline |
Definition at line 3859 of file fvar.hpp.
Referenced by eigenvectors(), and tri_dagv().
void d3_array::save_d3_array_position | ( | ) | const |
void d3_array::save_d3_array_value | ( | ) | const |
void d3_array::shallow_copy | ( | const d3_array & | other | ) |
Shallow copy other data structure pointers.
other | d3_array |
Definition at line 688 of file d3arr.cpp.
Referenced by d3_array(), and sub().
|
inline |
Definition at line 3830 of file fvar.hpp.
Referenced by allocate(), cos(), cube(), elem_div(), elem_prod(), exp(), fill_randcau(), fill_randn(), fill_randn_ni(), fill_randu(), fill_randu_ni(), indexmax(), d3_index::indexmax(), initialize(), log(), mfexp(), norm2(), operator*(), operator+(), operator-(), operator/(), operator/=(), operator<<(), operator=(), dvar3_array::operator=(), operator>>(), pow(), set_value_inv(), sin(), size_count(), size_count_partial(), slicesize(), sqr(), sqrt(), square(), tan(), and value().
|
inline |
Definition at line 3826 of file fvar.hpp.
Referenced by allocate(), begin(), colmax(), colmin(), cos(), cube(), elem_div(), elem_prod(), exp(), fill_randcau(), fill_randn(), fill_randn_ni(), fill_randu(), fill_randu_ni(), indexmin(), d3_index::indexmin(), initialize(), log(), mfexp(), norm2(), operator*(), operator+(), operator-(), operator/(), operator/=(), operator<<(), operator=(), dvar3_array::operator=(), operator>>(), pow(), rowmax(), rowmin(), set_value_inv(), sin(), size_count(), size_count_partial(), slicesize(), sqr(), sqrt(), square(), tan(), and value().
|
inline |
Definition at line 3853 of file fvar.hpp.
Referenced by allocate(), and end().
d3_array d3_array::sub | ( | int | nrl, |
int | nrh | ||
) |
|
friend |
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Returns d3_array with scalar values of variable arr3 array.
arr3 |
Definition at line 13 of file f3arr3.cpp.
Referenced by operator=().
|
private |
Definition at line 3730 of file fvar.hpp.
Referenced by allocate(), deallocate(), get_ncopies(), operator!(), shallow_copy(), slicemax(), and slicemin().
|
private |
Definition at line 3729 of file fvar.hpp.
Referenced by allocate(), begin(), deallocate(), elem(), end(), fill_seqadd(), initialize(), operator()(), operator/=(), operator=(), operator[](), and shallow_copy().
Generated on Wed Sep 7 2022 00:01:32 for ADMB Documentation by 1.8.5 |