ADMB Documentation
-a65f1c97
|
Go to the source code of this file.
Macros | |
#define | ISZERO(d) ((d)==0.0) |
#define | TINY 1.0e-20; |
A small number. More... | |
#define | TINY 1.0e-50; |
A small number. More... | |
Functions | |
double | det (const dmatrix &m1) |
Compute determinant of a constant matrix. More... | |
dmatrix | inv (const dmatrix &m1) |
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... | |
void | lubksb (dmatrix a, const ivector &indx, dvector b) |
LU decomposition back susbstitution alogrithm for constant object. More... | |
void | ludcmp (const dmatrix &_a, const ivector &_indx, const double &_d) |
Lu decomposition of a constant matrix. More... | |
void | ludcmp_det (const dmatrix &_a, const ivector &_indx, const double &_d) |
LU decomposition. More... | |
void | ludcmp_index (const dmatrix &_a, const ivector &_indx, const double &_d) |
LU decomposition. More... | |
#define ISZERO | ( | d | ) | ((d)==0.0) |
#define TINY 1.0e-20; |
A small number.
Used to avoid divide by zero in the LU decomposition. Locally defined, undefined, redefined and undefined in this file.
Definition at line 334 of file dmat3.cpp.
Referenced by ludcmp(), ludcmp_det(), and ludcmp_index().
#define TINY 1.0e-50; |
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 |
double ln_det | ( | const dmatrix & | m1, |
int & | sgn | ||
) |
Compute log determinant of a constant matrix.
m1 | A dmatrix, , for which the determinant is computed. |
_sgn |
Definition at line 536 of file dmat3.cpp.
Referenced by laplace_approximation_calculator::banded_calculations(), calculate_importance_sample(), calculate_importance_sample_block_diagonal(), calculate_importance_sample_block_diagonal_funnel(), calculate_importance_sample_block_diagonal_option2(), calculate_importance_sample_block_diagonal_option_antithetical(), calculate_importance_sample_funnel(), calculate_importance_sample_shess(), calculate_laplace_approximation(), do_gauss_hermite_block_diagonal(), do_gauss_hermite_block_diagonal_multi(), evaluate_function_with_quadprior(), laplace_approximation_calculator::get_gradient_for_hessian_calcs(), get_ln_det(), function_minimizer::hess_determinant(), function_minimizer::hess_inv(), inv(), ln_det(), function_minimizer::mcmc_routine(), function_minimizer::monte_carlo_routine(), function_minimizer::projected_hess_determinant(), function_minimizer::random_effects_maximization(), function_minimizer::sd_routine(), solve(), and function_minimizer::unrestricted_hess_determinant().
LU decomposition back susbstitution alogrithm for constant object.
a | A dmatrix containing LU decomposition of input matrix. . |
indx | Permutation vector from ludcmp. |
b | A dvector containing the RHS, of the linear equation , to be solved, and containing on return the solution vector . |
The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 2
Lu decomposition of a constant matrix.
_a | A dmatrix; replaced by the by its resulting LU decomposition |
_indx | An ivector containing the row permutations generated by partial pivoting |
_d | A double containing -1 or +1 depending whether the number of row interchanges was even or odd, repectively. The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 2 |
LU decomposition.
Used to set up determinant computation.
_a | A dmatrix; replaced by the by its resulting LU decomposition |
_indx | An ivector containing the row permutations generated by partial pivoting |
_d | A double containing -1 or +1 depending whether the number of row interchanges was even or odd, repectively. The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 2 |
LU decomposition.
The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 2
Generated on Wed Sep 7 2022 00:01:31 for ADMB Documentation by 1.8.5 |