Function LU_lndet (o2scl_linalg)¶
-
template<class mat_t>
double o2scl_linalg::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.
Compute the logarithm of the absolute value of the determinant of a matrix A, \( \ln|\det(A)| \), from its LU decomposition, LU. This function may be useful if the direct computation of the determinant would overflow or underflow.