From 82f9aa194d0b516b3041e04fde808c3404ba0473 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sun, 4 Dec 2011 21:49:21 +0100 Subject: fix bug #294: add a diagonal() method to SparseMatrix (const) --- Eigen/src/SparseCholesky/SimplicialCholesky.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Eigen/src/SparseCholesky') diff --git a/Eigen/src/SparseCholesky/SimplicialCholesky.h b/Eigen/src/SparseCholesky/SimplicialCholesky.h index edc83a018..4aa366343 100644 --- a/Eigen/src/SparseCholesky/SimplicialCholesky.h +++ b/Eigen/src/SparseCholesky/SimplicialCholesky.h @@ -398,7 +398,7 @@ public: /** \returns the determinant of the underlying matrix from the current factorization */ Scalar determinant() const { - Scalar detL = Diagonal(Base::m_matrix).prod(); + Scalar detL = Base::m_matrix.diagonal().prod(); return internal::abs2(detL); } }; -- cgit v1.2.3