mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-23 14:53:13 +08:00
make Simplicial* non-copyable, and fix return type of Simplicial*::compute()
This commit is contained in:
parent
a2ae063491
commit
5f5a4d4546
@ -83,7 +83,7 @@ enum SimplicialCholeskyMode {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
template<typename Derived>
|
template<typename Derived>
|
||||||
class SimplicialCholeskyBase
|
class SimplicialCholeskyBase : internal::noncopyable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef typename internal::traits<Derived>::MatrixType MatrixType;
|
typedef typename internal::traits<Derived>::MatrixType MatrixType;
|
||||||
@ -400,7 +400,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Computes the sparse Cholesky decomposition of \a matrix */
|
/** Computes the sparse Cholesky decomposition of \a matrix */
|
||||||
SimplicialLLT compute(const MatrixType& matrix)
|
SimplicialLLT& compute(const MatrixType& matrix)
|
||||||
{
|
{
|
||||||
Base::template compute<false>(matrix);
|
Base::template compute<false>(matrix);
|
||||||
return *this;
|
return *this;
|
||||||
@ -491,7 +491,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Computes the sparse Cholesky decomposition of \a matrix */
|
/** Computes the sparse Cholesky decomposition of \a matrix */
|
||||||
SimplicialLDLT compute(const MatrixType& matrix)
|
SimplicialLDLT& compute(const MatrixType& matrix)
|
||||||
{
|
{
|
||||||
Base::template compute<true>(matrix);
|
Base::template compute<true>(matrix);
|
||||||
return *this;
|
return *this;
|
||||||
@ -583,7 +583,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Computes the sparse Cholesky decomposition of \a matrix */
|
/** Computes the sparse Cholesky decomposition of \a matrix */
|
||||||
SimplicialCholesky compute(const MatrixType& matrix)
|
SimplicialCholesky& compute(const MatrixType& matrix)
|
||||||
{
|
{
|
||||||
if(m_LDLT)
|
if(m_LDLT)
|
||||||
Base::template compute<true>(matrix);
|
Base::template compute<true>(matrix);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user