aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/SparseCholesky
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2011-12-04 21:49:21 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2011-12-04 21:49:21 +0100
commit82f9aa194d0b516b3041e04fde808c3404ba0473 (patch)
tree01c8162f82a5777dbcf705f9955082d4b67c7176 /Eigen/src/SparseCholesky
parent69966e90e12c0c9eef4f370945e23fcc943ee8a6 (diff)
fix bug #294: add a diagonal() method to SparseMatrix (const)
Diffstat (limited to 'Eigen/src/SparseCholesky')
-rw-r--r--Eigen/src/SparseCholesky/SimplicialCholesky.h2
1 files changed, 1 insertions, 1 deletions
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<const CholMatrixType>(Base::m_matrix).prod();
+ Scalar detL = Base::m_matrix.diagonal().prod();
return internal::abs2(detL);
}
};