Go to the source code of this file.
Defines | |
#define | ISZERO(d) ((d)==0.0) |
#define | TINY 1.0e-20; |
A small number. | |
#define | TINY 1.0e-50; |
A small number. | |
Functions | |
double | det (const dmatrix &m1) |
Compute determinant of a constant matrix. | |
dmatrix | inv (const dmatrix &m1) |
Inverse of a constant matrix by LU decomposition. | |
dmatrix | inv (const dmatrix &m1, const double &_ln_det, const int &_sgn) |
Inverse of a constant matrix by LU decomposition. | |
double | ln_det (const dmatrix &m1, int &sgn) |
Compute log determinant of a constant matrix. | |
void | lubksb (dmatrix a, const ivector &indx, dvector b) |
LU decomposition back susbstitution alogrithm for constant object. | |
void | ludcmp (const dmatrix &_a, const ivector &_indx, const double &_d) |
Lu decomposition of a constant matrix. | |
void | ludcmp_det (const dmatrix &_a, const ivector &_indx, const double &_d) |
LU decomposition. | |
void | ludcmp_index (const dmatrix &_a, const ivector &_indx, const double &_d) |
LU decomposition. |
#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 273 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 |
Compute log determinant of a constant matrix.
m1 | A dmatrix, , for which the determinant is computed. |
_sgn |
Definition at line 471 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 |
void ludcmp_det | ( | const dmatrix & | _a, |
const ivector & | _indx, | ||
const double & | _d | ||
) |
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 |
void ludcmp_index | ( | const dmatrix & | _a, |
const ivector & | _indx, | ||
const double & | _d | ||
) |
LU decomposition.
\n\n The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 2
Generated on Tue Mar 8 2016 19:51:36 for ADMB Documentation by 1.8.0 |