Function LU_det (o2scl_linalg)¶
-
template<class
mat_t
>
doubleo2scl_linalg
::
LU_det
(const size_t N, const mat_t &LU, int signum)¶ Compute the determinant of a matrix from its LU decomposition.
Compute the determinant of a matrix A from its LU decomposition, LU. The determinant is computed as the product of the diagonal elements of U and the sign of the row permutation signum.