From 5f5a4d4546f785821612a53efafba3552ecb048e Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 4 Jun 2012 13:22:44 +0200 Subject: make Simplicial* non-copyable, and fix return type of Simplicial*::compute() --- Eigen/src/SparseCholesky/SimplicialCholesky.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Eigen/src/SparseCholesky') diff --git a/Eigen/src/SparseCholesky/SimplicialCholesky.h b/Eigen/src/SparseCholesky/SimplicialCholesky.h index bd1f3b483..5a1255a27 100644 --- a/Eigen/src/SparseCholesky/SimplicialCholesky.h +++ b/Eigen/src/SparseCholesky/SimplicialCholesky.h @@ -83,7 +83,7 @@ enum SimplicialCholeskyMode { * */ template -class SimplicialCholeskyBase +class SimplicialCholeskyBase : internal::noncopyable { public: typedef typename internal::traits::MatrixType MatrixType; @@ -400,7 +400,7 @@ public: } /** Computes the sparse Cholesky decomposition of \a matrix */ - SimplicialLLT compute(const MatrixType& matrix) + SimplicialLLT& compute(const MatrixType& matrix) { Base::template compute(matrix); return *this; @@ -491,7 +491,7 @@ public: } /** Computes the sparse Cholesky decomposition of \a matrix */ - SimplicialLDLT compute(const MatrixType& matrix) + SimplicialLDLT& compute(const MatrixType& matrix) { Base::template compute(matrix); return *this; @@ -583,7 +583,7 @@ public: } /** Computes the sparse Cholesky decomposition of \a matrix */ - SimplicialCholesky compute(const MatrixType& matrix) + SimplicialCholesky& compute(const MatrixType& matrix) { if(m_LDLT) Base::template compute(matrix); -- cgit v1.2.3