Function LU_sgndet (o2scl_linalg)

O2scl : Function List

template<class mat_t>
int o2scl_linalg::LU_sgndet(const size_t N, const mat_t &LU, int signum)

Compute the sign of the determinant of a matrix from its LU decomposition.

Compute the sign or phase factor of the determinant of a matrix A, \( \det(A)/|\det(A)| \), from its LU decomposition, LU.