|
ADMB Documentation
-a65f1c97
|
Description not yet available. More...
#include <fvar.hpp>
Public Member Functions | |
| dmatrix (void) | |
| Default constructor. More... | |
| dmatrix (int, int, kkludge_object) | |
| dmatrix (int, int) | |
| Description not yet available. More... | |
| dmatrix (int, int, int, int) | |
| Description not yet available. More... | |
| dmatrix (const ad_integer &nrl, const ad_integer &nrh, const index_type &ncl, const index_type &nch) | |
| Description not yet available. More... | |
| dmatrix (int, int, const ivector &coll, const ivector &colh) | |
| Description not yet available. More... | |
| dmatrix (int, int, int coll, const ivector &colh) | |
| Description not yet available. More... | |
| dmatrix (const dvar_matrix_position &) | |
| Description not yet available. More... | |
| dmatrix (const dmatrix_position &) | |
| Description not yet available. More... | |
| dmatrix (const dmatrix &) | |
| Copy constructor. More... | |
| dmatrix (const banded_symmetric_dmatrix &) | |
| Description not yet available. More... | |
| dmatrix (const banded_lower_triangular_dmatrix &) | |
| Description not yet available. More... | |
| dmatrix (char *) | |
| Description not yet available. More... | |
| dmatrix (const tdmatrix &t) | |
| ~dmatrix () | |
| Destructor. More... | |
| void | allocate (void) |
| Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More... | |
| void | allocate (const dmatrix &dm) |
| Allocate dmatrix using the same dimensions as other. More... | |
| void | allocate (const dvar_matrix &) |
| Description not yet available. More... | |
| void | allocate (int nrl, int nrh, int ncl, int nch) |
| Allocate dmatrix with dimension [nrl to nrh] x [ncl to nch] where ncl to nch are vector of indexes. More... | |
| void | allocate (int nrl, int nrh) |
| Allocate dmatrix with row dimension [nrl to nrh] and empty columns. More... | |
| void | allocate (ad_integer nrl, ad_integer nrh) |
| Allocate dmatrix with row dimension [nrl to nrh] and empty columns. More... | |
| void | allocate (int nrl, int nrh, int ncl, const ivector &nch) |
| Allocate dmatrix with dimension [nrl to nrh] x [ncl to nch] where nch is vector of indexes. More... | |
| void | allocate (int nrl, int nrh, const ivector &ncl, int nch) |
| Allocate dmatrix with dimension [nrl to nrh] x [ncl to nch] where nch is vector of indexes. More... | |
| void | allocate (const ad_integer &nrl, const ad_integer &nrh, const index_type &ncl, const index_type &nch) |
| Allocate matrix with dimensions [nrl to nrh] x [ncl to nch]. More... | |
| void | allocate (int nrl, int nrh, const ivector &ncl, const ivector &nch) |
| Allocate dmatrix with dimension [nrl to nrh] x [ncl to nch] where ncl to nch are vector of indexes. More... | |
| dvector * | begin () const |
| void | colfill (int j, const dvector &v) |
| Fills dmatrix column at index column with values from vec. More... | |
| void | colfill_randn (const int &j, long int &n) |
| Fill random numbers into specified column j of matrix. More... | |
| void | colfill_randn (const int &j, const random_number_generator &rng) |
| Description not yet available. More... | |
| void | colfill_randn_ni (const int &j, long int &n) |
| Description not yet available. More... | |
| void | colfill_randu (const int &j, long int &n) |
| Fill random numbers into specified column j of matrix. More... | |
| void | colfill_randu (const int &j, const random_number_generator &rng) |
| Description not yet available. More... | |
| void | colfill_randu_ni (const int &j, long int &n) |
| Description not yet available. More... | |
| void | colfill_seqadd (const int &, const int &, const int &) |
| void | colfill_seqadd (const int &, double, double) |
| Fills dmatrix at index column with elements with values starting from base and incremented by offset. More... | |
| int | colmax (void) const |
| int | colmin (void) const |
| void | colshift (int min) |
| Description not yet available. More... | |
| unsigned int | colsize () const |
| void | deallocate () |
| Deallocate dmatrix memory. More... | |
| friend | dvar_matrix::dvar_matrix (const dmatrix &) |
| dvector & | elem (int i) |
| double & | elem (int i, int j) |
| const dvector & | elem (int i) const |
| const double & | elem (int i, int j) const |
| dvector * | end () const |
| void | fill (const char *) |
| Fill allocated dmatrix with values from input parameter s. More... | |
| void | fill_randcau (const random_number_generator &rng) |
| Description not yet available. More... | |
| void | fill_randn (long int &n) |
| Fill matrix with random numbers. More... | |
| void | fill_randn (const random_number_generator &rng) |
| Description not yet available. More... | |
| void | fill_randn_ni (long int &n) |
| Description not yet available. More... | |
| void | fill_randu (long int &n) |
| Fill matrix with random numbers. More... | |
| void | fill_randu (const random_number_generator &rng) |
| Description not yet available. More... | |
| void | fill_randu_ni (long int &n) |
| Description not yet available. More... | |
| double | fill_seqadd (double, double) |
| Description not yet available. More... | |
| int | indexmax () const |
| int | indexmin () const |
| void | initialize (void) |
| Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More... | |
| bool | is_valid_row (const int i) const |
| Check index i is in matrix row bounds [index_min, index_max]. More... | |
| bool | operator! () const |
| Returns true if dmatrix is empty, else false. More... | |
| dvector & | operator() (int i) |
| const dvector & | operator() (int i) const |
| double & | operator() (int i, int j) |
| const double & | operator() (int i, int j) const |
| dmatrix | operator() (const ivector &t) |
| Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More... | |
| dmatrix & | operator*= (double d) |
| Multiply value to all elements in dmatrix. More... | |
| dmatrix & | operator++ (void) |
| dmatrix & | operator+= (const dmatrix &t) |
| Add element-wise matrix values other to dmatrix. More... | |
| dmatrix & | operator-- (void) |
| dmatrix & | operator-= (const dmatrix &t) |
| Substract element-wise matrix values other from dmatrix. More... | |
| dmatrix & | operator/= (double d) |
| Divide value to all elements in dmatrix. More... | |
| dmatrix & | operator= (const dmatrix &t) |
| Assign values in other to dmatrix. More... | |
| dmatrix & | operator= (double t) |
| Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More... | |
| dvector & | operator[] (int) |
| const dvector & | operator[] (int) const |
| void | read_from (const istream &) |
| Description not yet available. More... | |
| uistream & | read_from (const uistream &) |
| Read dmatrix from input. More... | |
| void | rowfill (int j, const dvector &v) |
| Fills dmatrix row at index row with values from vec. More... | |
| void | rowfill_randn (const int &i, long int &n) |
| Fill random numbers into specified row i of matrix. More... | |
| void | rowfill_randn (const int &i, const random_number_generator &rng) |
| Description not yet available. More... | |
| void | rowfill_randn_ni (const int &i, long int &n) |
| Description not yet available. More... | |
| void | rowfill_randu (const int &i, long int &n) |
| Fill random numbers into specified row i of matrix. More... | |
| void | rowfill_randu (const int &i, const random_number_generator &rng) |
| Description not yet available. More... | |
| void | rowfill_randu_ni (const int &i, long int &n) |
| Description not yet available. More... | |
| void | rowfill_seqadd (const int &, double, double) |
| Fills dmatrix row at index with elements with values starting from base and incremented by offset. More... | |
| int | rowmax () const |
| int | rowmin () const |
| void | rowshift (int min) |
| Changes the range of valid indices for the rows. More... | |
| unsigned int | rowsize () const |
| void | save_dmatrix_derivatives (const dvar_matrix_position &pos) const |
| Description not yet available. More... | |
| void | save_dmatrix_derivatives_na (const dvar_matrix_position &pos) const |
| Description not yet available. More... | |
| void | save_dmatrix_position () const |
| Saves size and address information for a dmatrix to adjoint data file. More... | |
| void | save_dmatrix_value () const |
| Description not yet available. More... | |
| void | shallow_copy (const dmatrix &) |
| Shallow copy values and dimensions from other to dmatrix. More... | |
| dmatrix | sub (int, int) |
| Description not yet available. More... | |
| void | write_on (const ostream &) const |
| Description not yet available. More... | |
| uostream & | write_on (const uostream &) const |
| Write dmatrix to output. More... | |
Protected Attributes | |
| int | index_max |
| int | index_min |
| dvector * | m |
| mat_shapex * | shape |
Friends | |
| class | banded_lower_triangular_dmatrix |
| class | banded_symmetric_dmatrix |
| class | d3_array |
| double | det (const dmatrix &) |
| Compute determinant of a constant matrix. More... | |
| class | dvar_matrix |
| dvar_matrix & | dvar_matrix::operator= (const dmatrix &) |
| char * | fform (const char *, const dmatrix &) |
| dmatrix | inv (const dmatrix &) |
| Inverse of a constant matrix by LU decomposition. More... | |
| dmatrix | inv (const dmatrix &m1, const double &_ln_det, const int &_sgn) |
| Inverse of a constant matrix by LU decomposition. More... | |
| double | ln_det (const dmatrix &m1, int &sgn) |
| Compute log determinant of a constant matrix. More... | |
| double | norm (const dmatrix &) |
| Norm of a matrix; constant object. More... | |
| double | norm2 (const dmatrix &) |
| Norm squared of a matrix; constant object. More... | |
| dvector | operator* (const dvector &, const dmatrix &) |
| Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More... | |
| dvector | operator* (const dmatrix &, const dvector &) |
| Returns product of AB where A is a dmatrix and B is a dvector. More... | |
| dvar_vector | operator* (const dvar_vector &, const dmatrix &) |
| Description not yet available. More... | |
| dvar_vector | operator* (const dmatrix &, const dvar_vector &) |
| Description not yet available. More... | |
| dmatrix | operator* (const dmatrix &, const dmatrix &) |
| Returns product of AB where A is a dmatrix and B is a dmatrix. More... | |
| dvar_matrix | operator* (const dvar_matrix &, const dmatrix &) |
| Description not yet available. More... | |
| dvar_matrix | operator* (const dmatrix &, const dvar_matrix &) |
| Description not yet available. More... | |
| dmatrix | operator+ (const dmatrix &, const dmatrix &) |
| Description not yet available. More... | |
| dvar_matrix | operator+ (const dvar_matrix &, const dmatrix &) |
| Description not yet available. More... | |
| dvar_matrix | operator+ (const dmatrix &, const dvar_matrix &) |
| Description not yet available. More... | |
| dmatrix | operator- (const dmatrix &, const dmatrix &) |
| Description not yet available. More... | |
| double | sumsq (const dmatrix &) |
| Calls norm2. More... | |
| dmatrix | trans (const dmatrix &m1) |
| Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More... | |
| dmatrix::dmatrix | ( | int | , |
| int | , | ||
| kkludge_object | |||
| ) |
| dmatrix::dmatrix | ( | int | nrl, |
| int | nrh | ||
| ) |
| dmatrix::dmatrix | ( | int | nrl, |
| int | nrh, | ||
| int | ncl, | ||
| int | nch | ||
| ) |
| dmatrix::dmatrix | ( | const ad_integer & | nrl, |
| const ad_integer & | nrh, | ||
| const index_type & | ncl, | ||
| const index_type & | nch | ||
| ) |
| dmatrix::dmatrix | ( | int | nrl, |
| int | nrh, | ||
| int | ncl, | ||
| const ivector & | nch | ||
| ) |
| dmatrix::dmatrix | ( | const dvar_matrix_position & | pos | ) |
| dmatrix::dmatrix | ( | const dmatrix_position & | pos | ) |
| dmatrix::dmatrix | ( | const dmatrix & | other | ) |
| dmatrix::dmatrix | ( | const banded_symmetric_dmatrix & | S | ) |
| dmatrix::dmatrix | ( | const banded_lower_triangular_dmatrix & | S | ) |
| dmatrix::dmatrix | ( | char * | s | ) |
| dmatrix::dmatrix | ( | const tdmatrix & | t | ) |
| void dmatrix::allocate | ( | void | ) |
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Does NOT allocate, but initializes dmatrix members.
Definition at line 8 of file dmat0.cpp.
Referenced by named_dmatrix::allocate(), data_matrix::allocate(), dll_data_matrix::allocate(), param_stddev_matrix::allocate(), allocate(), d3_array::allocate(), banded_lower_triangular_dmatrix::banded_lower_triangular_dmatrix(), banded_symmetric_dmatrix::banded_symmetric_dmatrix(), calculate_laplace_approximation(), laplace_approximation_calculator::check_hessian_type(), laplace_approximation_calculator::check_hessian_type2(), cube(), deallocate(), dmatrix(), first_derivatives(), param_init_bounded_number_matrix::get_scalefactor(), function_minimizer::hess_inv(), function_minimizer::hybrid_mcmc_routine(), laplace_approximation_calculator::laplace_approximation_calculator(), lower_triangular_dmatrix::lower_triangular_dmatrix(), make_preliminary_hist(), function_minimizer::mcmc_routine(), operator*(), operator+(), operator-(), operator/(), function_minimizer::rwm_mcmc_routine(), second_derivatives(), square(), third_derivatives(), and value().
| void dmatrix::allocate | ( | const dmatrix & | other | ) |
| void dmatrix::allocate | ( | const dvar_matrix & | dm | ) |
| void dmatrix::allocate | ( | int | nrl, |
| int | nrh, | ||
| int | ncl, | ||
| int | nch | ||
| ) |
| void dmatrix::allocate | ( | int | nrl, |
| int | nrh | ||
| ) |
| void dmatrix::allocate | ( | ad_integer | nrl, |
| ad_integer | nrh | ||
| ) |
| void dmatrix::allocate | ( | int | nrl, |
| int | nrh, | ||
| int | ncl, | ||
| const ivector & | nch | ||
| ) |
| void dmatrix::allocate | ( | int | nrl, |
| int | nrh, | ||
| const ivector & | ncl, | ||
| int | nch | ||
| ) |
| void dmatrix::allocate | ( | const ad_integer & | nrl, |
| const ad_integer & | nrh, | ||
| const index_type & | ncl, | ||
| const index_type & | nch | ||
| ) |
Allocate matrix with dimensions [nrl to nrh] x [ncl to nch].
| nrl | lower matrix row index |
| nrl | upper matrix row index |
| ncl | lower matrix column index |
| ncl | upper matrix column index |
Definition at line 210 of file indextyp.cpp.
|
inline |
Definition at line 2900 of file fvar.hpp.
Referenced by end(), initialize(), operator+=(), operator-=(), and operator=().
| void dmatrix::colfill | ( | int | column, |
| const dvector & | vec | ||
| ) |
Fills dmatrix column at index column with values from vec.
| column | index |
| vec | values to copy |
Definition at line 123 of file cranfill.cpp.
| void dmatrix::colfill_randn | ( | const int & | j, |
| long int & | n | ||
| ) |
Fill random numbers into specified column j of matrix.
| j | specified column |
| n | seed |
Definition at line 301 of file ranfill.cpp.
| void dmatrix::colfill_randn | ( | const int & | j, |
| const random_number_generator & | rng | ||
| ) |
| void dmatrix::colfill_randn_ni | ( | const int & | j, |
| long int & | n | ||
| ) |
| void dmatrix::colfill_randu | ( | const int & | j, |
| long int & | n | ||
| ) |
Fill random numbers into specified column j of matrix.
| j | specified column |
| n | seed |
Definition at line 204 of file ranfill.cpp.
| void dmatrix::colfill_randu | ( | const int & | j, |
| const random_number_generator & | rng | ||
| ) |
| void dmatrix::colfill_randu_ni | ( | const int & | j, |
| long int & | n | ||
| ) |
| void dmatrix::colfill_seqadd | ( | const int & | , |
| const int & | , | ||
| const int & | |||
| ) |
| void dmatrix::colfill_seqadd | ( | const int & | column, |
| double | base, | ||
| double | offset | ||
| ) |
Fills dmatrix at index column with elements with values starting from base and incremented by offset.
| row | index |
| base | initial value |
| offset | incremental value |
Definition at line 105 of file cranfill.cpp.
|
inline |
Definition at line 2943 of file fvar.hpp.
Referenced by cmdm_prod(), colsize(), colsum(), det(), df_xdet(), df_xldet(), dfinvpret(), dfmattrans(), diagonal(), dmcm_prod(), dmdm_prod(), dmdv_solve(), dmultinom(), dmvlogistic(), dvcm_prod(), dvdm_prod(), expm(), extract_column(), fabs(), inv(), ln_det(), lubksb(), ludcmp(), ludcmp_det(), ludcmp_index(), matrix2vector(), multifan(), operator*(), operator+(), operator-(), operator=(), function_minimizer::rotate_gradient(), function_minimizer::rotate_pars(), rowfill_randn(), rowfill_randn_ni(), rowfill_randu(), rowfill_randu_ni(), solve(), symmetrize(), trace(), trans(), and dll_data_matrix::~dll_data_matrix().
|
inline |
Definition at line 2939 of file fvar.hpp.
Referenced by choleski_decomp(), choleski_decomp_error(), function_minimizer::choleski_decomp_hmc(), choleski_decomp_neghess_error(), choleski_decomp_positive(), cmdm_prod(), colsize(), colsum(), det(), df_ln_det_choleski(), df_xdet(), df_xldet(), dfcholeski_decomp(), dfcholeski_decomp_positive(), dfinvpret(), dfmattrans(), diagonal(), dmcm_prod(), dmdm_prod(), dmdv_solve(), dmultinom(), dmvlogistic(), dvcm_prod(), dvdm_prod(), expm(), extract_column(), fabs(), fill(), inv(), ln_det(), lower_triangular_choleski_decomp_positive(), lubksb(), ludcmp(), ludcmp_det(), ludcmp_index(), matrix2vector(), multifan(), operator*(), operator+(), operator-(), operator=(), function_minimizer::rotate_gradient(), function_minimizer::rotate_pars(), rowfill_randn(), rowfill_randn_ni(), rowfill_randu(), rowfill_randu_ni(), solve(), svd(), symmetrize(), trace(), trans(), and dll_data_matrix::~dll_data_matrix().
| void dmatrix::colshift | ( | int | min | ) |
Description not yet available.
Definition at line 68 of file dmat9.cpp.
Referenced by choleski_decomp(), choleski_decomp_error(), function_minimizer::choleski_decomp_hmc(), choleski_decomp_neghess_error(), choleski_decomp_positive(), df_ln_det_choleski(), dfcholeski_decomp(), dfcholeski_decomp_positive(), eigenvalues(), eigenvectors(), fill(), ln_det_choleski(), ln_det_choleski_error(), lower_triangular_choleski_decomp_positive(), and svd().
|
inline |
Definition at line 2948 of file fvar.hpp.
Referenced by choleski_decomp(), choleski_decomp_error(), function_minimizer::choleski_decomp_hmc(), choleski_decomp_neghess_error(), choleski_decomp_positive(), df_ln_det_choleski(), dfcholeski_decomp(), dfcholeski_decomp_positive(), eigenvalues(), eigenvectors(), ln_det_choleski(), ln_det_choleski_error(), lower_triangular_choleski_decomp_positive(), ludcmp(), ludcmp_det(), ludcmp_index(), solve(), tri_dag(), and tri_dagv().
| void dmatrix::deallocate | ( | void | ) |
Deallocate dmatrix memory.
Definition at line 363 of file dmat.cpp.
Referenced by calculate_laplace_approximation(), laplace_approximation_calculator::check_hessian_type(), laplace_approximation_calculator::check_hessian_type2(), sdmatrix::deallocate(), laplace_approximation_calculator::do_separable_stuff_hessian_type_information(), function_minimizer::get_bigS(), and ~dmatrix().
| dmatrix::dvar_matrix::dvar_matrix | ( | const dmatrix & | ) |
|
inline |
Definition at line 3011 of file fvar.hpp.
Referenced by cmdm_prod(), colfill_randn(), colfill_randn_ni(), colfill_randu(), colfill_randu_ni(), colfill_seqadd(), colshift(), column_vector(), det(), dfinvpret(), dmatrix(), dmcm_prod(), dmdm_prod(), dmdv_solve(), dvcm_prod(), dvdm_prod(), extract_row(), fill_randcau(), fill_randn(), fill_randn_ni(), fill_randu(), fill_randu_ni(), fill_seqadd(), identity_matrix(), initialize(), inv(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/=(), operator=(), read_from(), row_vector(), rowfill(), rowfill_randn(), rowfill_randn_ni(), rowfill_randu(), rowfill_randu_ni(), rowfill_seqadd(), solve(), sum(), trace(), and write_on().
|
inline |
Definition at line 2904 of file fvar.hpp.
Referenced by initialize(), operator+=(), operator-=(), and operator=().
| void dmatrix::fill | ( | const char * | s | ) |
Fill allocated dmatrix with values from input parameter s.
dmatrix m(1, 2, 1, 3);
char values[] = "{0, 1, 2} {3, 4, 5}";
m.fill(values);
| s | values |
Definition at line 29 of file dmat10.cpp.
| void dmatrix::fill_randcau | ( | const random_number_generator & | rng | ) |
Description not yet available.
Definition at line 39 of file drancau.cpp.
Referenced by d3_array::fill_randcau().
| void dmatrix::fill_randn | ( | long int & | n | ) |
Fill matrix with random numbers.
| n | seed |
Definition at line 244 of file ranfill.cpp.
Referenced by d3_array::fill_randn(), and laplace_approximation_calculator::generate_antithetical_rvs().
| void dmatrix::fill_randn | ( | const random_number_generator & | rng | ) |
| void dmatrix::fill_randn_ni | ( | long int & | n | ) |
Description not yet available.
Definition at line 116 of file ranf_ni.cpp.
Referenced by d3_array::fill_randn(), and d3_array::fill_randn_ni().
| void dmatrix::fill_randu | ( | long int & | n | ) |
Fill matrix with random numbers.
| n | seed |
Definition at line 286 of file ranfill.cpp.
Referenced by d3_array::fill_randu(), and laplace_approximation_calculator::laplace_approximation_calculator().
| void dmatrix::fill_randu | ( | const random_number_generator & | rng | ) |
| void dmatrix::fill_randu_ni | ( | long int & | n | ) |
Description not yet available.
Definition at line 160 of file ranf_ni.cpp.
Referenced by d3_array::fill_randu(), and d3_array::fill_randu_ni().
| double dmatrix::fill_seqadd | ( | double | x, |
| double | d | ||
| ) |
Description not yet available.
Definition at line 35 of file dmat21.cpp.
Referenced by derch(), d3_array::fill_seqadd(), and print_is_diagnostics().
|
inline |
Definition at line 2921 of file fvar.hpp.
Referenced by laplace_approximation_calculator::check_hessian_type(), laplace_approximation_calculator::check_hessian_type2(), choleski_decomp(), colmax(), copy_value_from_vector(), cos(), dfempirical_covarv(), dfempirical_covarv_partial(), dfmattrans(), diagonal(), laplace_approximation_calculator::do_newton_raphson_banded(), dot(), elem_div(), elem_prod(), exp(), fillout(), fillout_trans(), function_minimizer::get_bigS(), quadratic_prior::get_cgradient(), quadratic_prior::get_cHessian(), laplace_approximation_calculator::get_gradient_for_hessian_calcs(), ghk(), ghk_choleski(), ghk_choleski_m(), ghk_choleski_m_cauchy(), ghk_choleski_m_logistic(), ghk_m(), ghk_test(), function_minimizer::hess_inv(), function_minimizer::hess_routine_noparallel_random_effects(), banded_symmetric_dmatrix::indexmax(), banded_lower_triangular_dmatrix::indexmax(), function_minimizer::limited_memory_quasi_newton_block(), log(), lower_triangular_solve(), lower_triangular_solve_trans(), make_dcompressed_triplet(), matrix2vector(), function_minimizer::normalize_posterior_distribution(), operator+(), operator-(), operator/(), df1b2quadratic_prior::operator=(), operator>>(), pow(), print_is_diagnostics(), function_minimizer::quasi_newton_block(), reorder(), function_minimizer::sd_routine(), sin(), singval_decomp(), solve(), solve_trans(), sort(), sqr(), sqrt(), sub_unallocated(), symmetrize(), tan(), tmpxchol1(), and VEC().
|
inline |
Definition at line 2917 of file fvar.hpp.
Referenced by choleski_decomp(), colmax(), colmin(), copy_value_from_vector(), cos(), dfempirical_covarv(), dfempirical_covarv_partial(), dfmattrans(), diagonal(), dot(), elem_div(), elem_prod(), exp(), fill(), fillout(), fillout_trans(), function_minimizer::get_bigS(), quadratic_prior::get_cgradient(), quadratic_prior::get_cHessian(), df1b2quadratic_prior::get_Lxu(), ghk_test(), function_minimizer::hess_routine_noparallel_random_effects(), banded_symmetric_dmatrix::indexmin(), banded_lower_triangular_dmatrix::indexmin(), ln_det_choleski(), ln_det_choleski_error(), log(), lower_triangular_solve(), lower_triangular_solve_trans(), make_dcompressed_triplet(), matrix2vector(), function_minimizer::normalize_posterior_distribution(), operator+(), operator-(), operator/(), df1b2quadratic_prior::operator=(), operator>>(), pow(), reorder(), sin(), singval_decomp(), solve(), solve_trans(), sort(), sqr(), sqrt(), sub_unallocated(), symmetrize(), tan(), tmpxchol1(), and VEC().
| void dmatrix::initialize | ( | void | ) |
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Initalize all elements of dmatrix to zero.
Definition at line 12 of file dmat7.cpp.
Referenced by ageLengthKey(), function_minimizer::calculate_chd_and_inverse(), check_second_derivatives(), choleski_decomp(), choleski_decomp_error(), function_minimizer::choleski_decomp_hmc(), choleski_decomp_neghess_error(), choleski_decomp_positive(), cmdm_prod(), laplace_approximation_calculator::default_calculations_check_derivatives(), df_ln_det_choleski(), df_xdet(), df_xldet(), dfcholeski_decomp(), dfcholeski_decomp_positive(), dfempirical_covarv(), dfempirical_covarv_partial(), dfinvpret(), dfmatinit(), dmcm_prod(), dmcv_prod(), dmdm_prod(), dmdv_prod(), dmdv_solve(), laplace_approximation_calculator::do_newton_raphson_banded(), laplace_approximation_calculator::do_separable_stuff_laplace_approximation_block_diagonal(), laplace_approximation_calculator::do_separable_stuff_laplace_approximation_importance_sampling_adjoint(), laplace_approximation_calculator::do_separable_stuff_newton_raphson_block_diagonal(), laplace_approximation_calculator::do_separable_stuff_x_u_block_diagonal(), dvdm_prod(), eigenvalues(), eigenvectors(), expm(), fcomp1(), function_minimizer::get_bigS(), laplace_approximation_calculator::get_block_diagonal_hessian(), laplace_approximation_calculator::get_complete_hessian(), get_second_ders(), get_solution_vector(), function_minimizer::hybrid_mcmc_routine(), identity_matrix(), d3_array::initialize(), function_minimizer::likeprof_routine(), ln_det_choleski(), ln_det_choleski_error(), lower_triangular_choleski_decomp_positive(), make_dmatrix(), make_preliminary_hist(), make_sdmatrix(), MAT(), function_minimizer::mcmc_routine(), function_minimizer::nuts_mcmc_routine(), read_hist_data(), function_minimizer::rwm_mcmc_routine(), function_minimizer::sd_routine(), seldif_basis(), and function_minimizer::shmc_mcmc_routine().
| bool dmatrix::is_valid_row | ( | const int | i | ) | const |
|
inline |
|
inline |
Definition at line 3083 of file fvar.hpp.
Referenced by operator()().
|
inline |
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Returns a selected vector of rows from ivector using positions in indexes, then for each selected row select only values each position in indexes.
Note: Assumes positions are in range [indexmin() to indexmax()].
| indexes | contains vector of valid index values |
Definition at line 16 of file dmat18.cpp.
| dmatrix & dmatrix::operator*= | ( | double | d | ) |
Multiply value to all elements in dmatrix.
| value | double |
Definition at line 48 of file dmat22.cpp.
| dmatrix & dmatrix::operator/= | ( | double | d | ) |
Divide value to all elements in dmatrix.
| value | double |
Definition at line 35 of file dmat22.cpp.
Assign values in other to dmatrix.
| other | dmatrix |
Definition at line 27 of file dmat4.cpp.
Referenced by named_dmatrix::operator=().
| dmatrix & dmatrix::operator= | ( | double | t | ) |
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Assign value x to all elements in dmatrix.
| value | double |
Definition at line 22 of file dmat22.cpp.
| void dmatrix::read_from | ( | const istream & | s | ) |
Description not yet available.
Definition at line 91 of file dmat_io.cpp.
Referenced by operator>>().
| void dmatrix::rowfill | ( | int | row, |
| const dvector & | vec | ||
| ) |
Fills dmatrix row at index row with values from vec.
| row | index |
| vec | values to copy |
Definition at line 136 of file cranfill.cpp.
| void dmatrix::rowfill_randn | ( | const int & | i, |
| long int & | n | ||
| ) |
Fill random numbers into specified row i of matrix.
| i | specified row |
| n | seed |
Definition at line 315 of file ranfill.cpp.
| void dmatrix::rowfill_randn | ( | const int & | i, |
| const random_number_generator & | rng | ||
| ) |
| void dmatrix::rowfill_randn_ni | ( | const int & | i, |
| long int & | n | ||
| ) |
| void dmatrix::rowfill_randu | ( | const int & | i, |
| long int & | n | ||
| ) |
Fill random numbers into specified row i of matrix.
| i | specified row |
| n | seed |
Definition at line 218 of file ranfill.cpp.
| void dmatrix::rowfill_randu | ( | const int & | i, |
| const random_number_generator & | rng | ||
| ) |
| void dmatrix::rowfill_randu_ni | ( | const int & | i, |
| long int & | n | ||
| ) |
| void dmatrix::rowfill_seqadd | ( | const int & | row, |
| double | base, | ||
| double | offset | ||
| ) |
Fills dmatrix row at index with elements with values starting from base and incremented by offset.
| row | index |
| base | initial value |
| offset | incremental value |
Definition at line 148 of file cranfill.cpp.
|
inline |
Definition at line 2929 of file fvar.hpp.
Referenced by dvar_matrix::allocate(), allocate(), param_init_bounded_number_vector::allocate(), sdmatrix::allocate(), choleski_decomp(), choleski_decomp_error(), function_minimizer::choleski_decomp_hmc(), choleski_decomp_neghess_error(), choleski_decomp_positive(), cmdm_prod(), cmdv_prod(), colfill(), colfill_randn(), colfill_randn_ni(), colfill_randu(), colfill_randu_ni(), colfill_seqadd(), colshift(), colsum(), cos(), cube(), det(), df_ln_det_choleski(), dfcholeski_decomp(), dfcholeski_decomp_positive(), dmatrix(), dmatrix_position::dmatrix_position(), dmcm_prod(), dmcv_prod(), dmdm_prod(), dmdv_prod(), dmultinom(), dmvlogistic(), elem_div(), elem_prod(), exp(), expm(), extract_column(), extract_row(), fabs(), fill(), fill_randcau(), fill_randn(), fill_randn_ni(), fill_randu(), fill_randu_ni(), fill_seqadd(), indexmax(), dmatrix_index::indexmax(), initialize(), inv(), ln_det(), ln_det_choleski(), ln_det_choleski_error(), log(), lower_triangular_choleski_decomp_positive(), matrix2vector(), max(), mfexp(), min(), nograd_assign(), nograd_assign_trans(), norm(), norm2(), function_minimizer::normalize_posterior_distribution(), operator*(), operator*=(), operator+(), dvar_matrix::operator+=(), operator+=(), operator-(), dvar_matrix::operator-=(), operator-=(), operator/(), operator/=(), dvar_matrix::operator=(), operator=(), pow(), read_from(), DF_FILE::restore_dmatrix_value(), DF_FILE::restore_dvar_matrix_value(), function_minimizer::rotate_pars(), banded_symmetric_dmatrix::rowmax(), banded_lower_triangular_dmatrix::rowmax(), rowsize(), rowsum(), save_dmatrix_derivatives(), save_dmatrix_derivatives_na(), DF_FILE::save_dmatrix_position(), DF_FILE::save_dmatrix_value(), set_value_inv(), sin(), size_count(), size_count_partial(), solve(), sort(), sqr(), sqrt(), square(), sum(), symmetrize(), tan(), trace(), trans(), use_shape(), write_on(), and dll_data_matrix::~dll_data_matrix().
|
inline |
Definition at line 2925 of file fvar.hpp.
Referenced by dvar_matrix::allocate(), allocate(), param_init_bounded_number_vector::allocate(), sdmatrix::allocate(), begin(), choleski_decomp(), choleski_decomp_error(), function_minimizer::choleski_decomp_hmc(), choleski_decomp_neghess_error(), choleski_decomp_positive(), cmdm_prod(), cmdv_prod(), colfill(), colfill_randn(), colfill_randn_ni(), colfill_randu(), colfill_randu_ni(), colfill_seqadd(), colshift(), colsum(), cos(), cube(), det(), df_ln_det_choleski(), dfcholeski_decomp(), dfcholeski_decomp_positive(), dmatrix(), dmatrix_position::dmatrix_position(), dmcm_prod(), dmcv_prod(), dmdm_prod(), dmdv_prod(), dmultinom(), dmvlogistic(), elem_div(), elem_prod(), exp(), expm(), extract_column(), extract_row(), fabs(), fill(), fill_randcau(), fill_randn(), fill_randn_ni(), fill_randu(), fill_randu_ni(), fill_seqadd(), indexmin(), dmatrix_index::indexmin(), initialize(), inv(), ln_det(), log(), lower_triangular_choleski_decomp_positive(), matrix2vector(), max(), mfexp(), min(), nograd_assign(), nograd_assign_trans(), norm(), norm2(), function_minimizer::normalize_posterior_distribution(), operator*(), operator*=(), operator+(), dvar_matrix::operator+=(), operator+=(), operator-(), dvar_matrix::operator-=(), operator-=(), operator/(), operator/=(), dvar_matrix::operator=(), operator=(), pow(), read_from(), DF_FILE::restore_dmatrix_value(), DF_FILE::restore_dvar_matrix_value(), function_minimizer::rotate_pars(), banded_symmetric_dmatrix::rowmin(), banded_lower_triangular_dmatrix::rowmin(), rowshift(), rowsize(), rowsum(), save_dmatrix_derivatives(), save_dmatrix_derivatives_na(), DF_FILE::save_dmatrix_position(), DF_FILE::save_dmatrix_value(), set_value_inv(), sin(), size_count(), size_count_partial(), solve(), sort(), sqr(), sqrt(), square(), sum(), svd(), symmetrize(), tan(), trace(), trans(), use_shape(), write_on(), and dll_data_matrix::~dll_data_matrix().
| void dmatrix::rowshift | ( | int | min | ) |
Changes the range of valid indices for the rows.
| min | shifts row values index_min and index_max. |
Definition at line 48 of file dmat9.cpp.
Referenced by choleski_decomp(), choleski_decomp_error(), function_minimizer::choleski_decomp_hmc(), choleski_decomp_neghess_error(), choleski_decomp_positive(), df_ln_det_choleski(), dfcholeski_decomp(), dfcholeski_decomp_positive(), eigenvalues(), eigenvectors(), fill(), ln_det_choleski(), ln_det_choleski_error(), lower_triangular_choleski_decomp_positive(), and svd().
|
inline |
Definition at line 2934 of file fvar.hpp.
Referenced by allocate(), sdmatrix::allocate(), choleski_decomp(), choleski_decomp_error(), function_minimizer::choleski_decomp_hmc(), choleski_decomp_neghess_error(), choleski_decomp_positive(), colsize(), df_ln_det_choleski(), dfcholeski_decomp(), dfcholeski_decomp_positive(), dmatrix(), eigenvalues(), eigenvectors(), end(), fill(), ln_det_choleski(), ln_det_choleski_error(), lower_triangular_choleski_decomp_positive(), operator*(), tri_dag(), and tri_dagv().
| void dmatrix::save_dmatrix_derivatives | ( | const dvar_matrix_position & | _pos | ) | const |
Description not yet available.
Definition at line 285 of file cmpdif5.cpp.
Referenced by cmdm_prod(), df_ln_det_choleski(), dfcholeski_decomp(), dfcholeski_decomp_positive(), dfempirical_covarv(), dfempirical_covarv_partial(), dfmattrans(), dmcm_prod(), dmcv_prod(), dmdm_prod(), dmdv_prod(), and dvdm_prod().
| void dmatrix::save_dmatrix_derivatives_na | ( | const dvar_matrix_position & | _pos | ) | const |
Description not yet available.
Definition at line 312 of file cmpdif5.cpp.
Referenced by dfmatinit().
| void dmatrix::save_dmatrix_position | ( | ) | const |
Saves size and address information for a dmatrix to adjoint data file.
Definition at line 27 of file cmpdif6.cpp.
| void dmatrix::save_dmatrix_value | ( | ) | const |
| void dmatrix::shallow_copy | ( | const dmatrix & | other | ) |
| dmatrix dmatrix::sub | ( | int | nrl, |
| int | nrh | ||
| ) |
Description not yet available.
Definition at line 47 of file dmat.cpp.
Referenced by orthpoly().
| void dmatrix::write_on | ( | const ostream & | _s | ) | const |
Description not yet available.
Definition at line 46 of file dmat_io.cpp.
Referenced by operator<<().
|
friend |
|
friend |
|
friend |
Compute determinant of a constant matrix.
| m1 | A dmatrix, , for which the determinant is computed. |
.
|
friend |
|
friend |
|
friend |
Inverse of a constant matrix by LU decomposition.
| m1 | A dmatrix, , for which the inverse is to be computed. |
. Inverse of a constant matrix by LU decomposition.
| m1 | A dmatrix, , for which the inverse is to be computed. |
| _ln_det | On return contains |
| _sign |
.
|
friend |
Compute log determinant of a constant matrix.
| m1 | A dmatrix, , for which the determinant is computed. |
| _sgn |
.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
protected |
Definition at line 2823 of file fvar.hpp.
Referenced by allocate(), sdmatrix::allocate(), dmatrix(), dvar_matrix::dvar_matrix(), is_valid_row(), operator++(), operator--(), operator=(), rowmax(), rowshift(), and shallow_copy().
|
protected |
Definition at line 2822 of file fvar.hpp.
Referenced by allocate(), sdmatrix::allocate(), dmatrix(), dvar_matrix::dvar_matrix(), is_valid_row(), operator++(), operator--(), operator=(), rowmin(), rowshift(), and shallow_copy().
|
protected |
Definition at line 2824 of file fvar.hpp.
Referenced by allocate(), sdmatrix::allocate(), begin(), deallocate(), dmatrix(), elem(), end(), initialize(), make_dmatrix(), operator()(), d3_array::operator()(), banded_symmetric_dmatrix::operator()(), banded_lower_triangular_dmatrix::operator()(), operator++(), operator--(), operator=(), operator[](), rowshift(), save_dmatrix_derivatives(), save_dmatrix_derivatives_na(), sdmatrix::sdmatrix(), and shallow_copy().
|
protected |
Definition at line 2825 of file fvar.hpp.
Referenced by dvar_matrix::allocate(), allocate(), sdmatrix::allocate(), deallocate(), dmatrix(), operator!(), operator=(), sdmatrix::sdmatrix(), and shallow_copy().
|
|
Generated on Wed Sep 7 2022 00:01:33 for ADMB Documentation by 1.8.5
|