Class matrix_invert_det (o2scl_linalg)

O2scl : Class List

template<class mat_t = boost::numeric::ublas::matrix<double>>
class matrix_invert_det

Invert a matrix and compute its determinant.

Subclassed by o2scl_linalg::matrix_invert_det_cholesky< boost::numeric::ublas::matrix< double > >, o2scl_linalg::matrix_invert_det_LU< mat_t, mat_col_t >, o2scl_linalg::matrix_invert_det_arma< arma_mat_t >, o2scl_linalg::matrix_invert_det_cholesky< mat_t >, o2scl_linalg::matrix_invert_det_eigen< eigen_mat_t >, o2scl_linalg::matrix_invert_det_sympd_arma< arma_mat_t >

Public Functions

inline matrix_invert_det()
inline virtual ~matrix_invert_det()
virtual int invert(size_t n, const mat_t &A, mat_t &A_inv) = 0

Invert matrix A, returning the inverse in A_inv.

virtual int invert_det(size_t n, const mat_t &A, mat_t &A_inv, double &A_det) = 0

Invert matrix A, returning the inverse in A_inv, and the determinant in A_det.

virtual double det(size_t n, const mat_t &A) = 0

Determine the determinant of the matrix A without inverting.

inline virtual int invert_det(size_t n, mat_t &A, mat_t &A_inv)

Invert matrix A, returning the inverse in A_inv, modifying the original matrix A.

virtual int invert_inplace(size_t n, mat_t &A) = 0

Invert matrix A in place.

inline virtual mat_t invert(size_t n, const mat_t &A)

Invert a matrix, returning the inverse.

Public Members

bool err_on_fail

Desc.