Class matrix_invert_det (o2scl_linalg)¶
-
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 inA_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 inA_inv
, and the determinant inA_det
.
-
virtual double det(size_t n, const mat_t &A) = 0¶
Determine the determinant of the matrix
A
without inverting.
Public Members
-
bool err_on_fail¶
If true, call the error handler on failure (default true)
-
inline matrix_invert_det()¶