![]() |
Object-oriented Scientific Computing Library: Version 0.910
|
File for LU decomposition and associated solver. More...
Go to the source code of this file.
Definition in file lu_base.h.
Namespaces | |
namespace | 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 . | |
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) |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. |
Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).