lu_base.h File Reference

File for LU decomposition and associated solver. More...

Go to the source code of this file.


Detailed Description

File for LU decomposition and associated solver.

Definition in file lu_base.h.


Namespaces

namespace  o2scl_linalg
 The namespace for linear algebra classes and functions.

Functions

template<class mat_t >
int 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 vec_t >
int LU_solve (const size_t N, const mat_t &LU, const o2scl::permutation &p, const vec_t &b, vec_t &x)
 Solve a linear system after LU decomposition.
template<class mat_t , class vec_t >
int 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 vec_t >
int LU_refine (const size_t N, const mat_t &A, const mat_t &LU, const o2scl::permutation &p, const vec_t &b, vec_t &x, vec_t &residual)
 Refine the solution of a linear system.
template<class mat_t , class mat_col_t >
int LU_invert (const size_t N, const mat_t &LU, const o2scl::permutation &p, mat_t &inverse)
 Compute the inverse of a matrix from its LU decomposition.
template<class mat_t >
double 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 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 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 and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page