IT++ 4.3.1
|
Functions | |
double | itpp::det (const mat &X) |
Determinant of real square matrix. | |
std::complex< double > | itpp::det (const cmat &X) |
Determinant of complex square matrix. | |
ITPP_EXPORT double itpp::det | ( | const mat & | X | ) |
Determinant of real square matrix.
Calculate determinant of the real matrix \(\mathbf{X}\)
Uses LU-factorisation.
\[\det(\mathbf{X}) = \det(\mathbf{P}^T \mathbf{L}) \det(\mathbf{U}) = \det(\mathbf{P}^T) \prod(\mathrm{diag}(\mathbf{U})) \]
and the determinant of the permuation matrix is \( \pm 1\) depending on the number of row permutations
Definition at line 43 of file det.cpp.
References it_assert_debug, and lu().
Referenced by itpp::MOG_generic::setup_covs().
ITPP_EXPORT std::complex< double > itpp::det | ( | const cmat & | X | ) |
Determinant of complex square matrix.
Calculate determinant of the complex matrix \(\mathbf{X}\)
Uses LU-factorisation.
\[\det(\mathbf{X}) = \det(\mathbf{P}^T \mathbf{L}) \det(\mathbf{U}) = \det(\mathbf{P}^T) \prod(\mathrm{diag}(\mathbf{U})) \]
and the determinant of the permuation matrix is \( \pm 1\) depending on the number of row permutations
Definition at line 76 of file det.cpp.
References it_assert_debug, and lu().