Namespaces | Functions
lu_base.h File Reference

Functions related to LU decomposition. More...

Go to the source code of this file.

Namespaces

 o2scl_linalg
 The namespace for linear algebra classes and functions.
 

Functions

template<class mat_t >
int o2scl_linalg::diagonal_has_zero (const size_t N, mat_t &A)
 Return 1 if at least one of the elements in the diagonal is zero.
 
template<class mat_t >
int o2scl_linalg::LU_decomp (const size_t N, mat_t &A, o2scl::permutation &p, int &signum)
 Compute the LU decomposition of the matrix A. More...
 
template<class mat_t , class vec_t >
int o2scl_linalg::LU_svx (const size_t N, const mat_t &LU, const o2scl::permutation &p, vec_t &x)
 Solve a linear system after LU decomposition in place. More...
 
template<class mat_t , class mat_row_t >
int o2scl_linalg::LU_decomp_alt (const size_t N, mat_t &A, o2scl::permutation &p, int &signum)
 An alternate form of LU decomposition with matrix row objects.
 
template<class mat_t , class vec_t , class vec2_t >
int o2scl_linalg::LU_solve (const size_t N, const mat_t &LU, const o2scl::permutation &p, const vec_t &b, vec2_t &x)
 Solve a linear system after LU decomposition. More...
 
template<class mat_t , class mat2_t , class vec_t , class vec2_t , class vec3_t >
int o2scl_linalg::LU_refine (const size_t N, const mat_t &A, const mat2_t &LU, const o2scl::permutation &p, const vec_t &b, vec2_t &x, vec3_t &residual)
 Refine the solution of a linear system. More...
 
template<class mat_t , class mat2_t , class mat_col_t >
int o2scl_linalg::LU_invert (const size_t N, const mat_t &LU, const o2scl::permutation &p, mat2_t &inverse)
 Compute the inverse of a matrix from its LU decomposition. More...
 
template<class mat_t >
double o2scl_linalg::LU_det (const size_t N, const mat_t &LU, int signum)
 Compute the determinant of a matrix from its LU decomposition. More...
 
template<class mat_t >
double o2scl_linalg::LU_lndet (const size_t N, const mat_t &LU)
 Compute the logarithm of the absolute value of the determinant of a matrix from its LU decomposition. More...
 
template<class mat_t >
int o2scl_linalg::LU_sgndet (const size_t N, const mat_t &LU, int signum)
 Compute the sign of the determinant of a matrix from its LU decomposition. More...
 

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).