diff options
author | Gael Guennebaud <g.gael@free.fr> | 2012-03-29 11:28:43 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2012-03-29 11:28:43 +0200 |
commit | 8ff882aa4cca8cd3e809a16bfb4e55db1b8277e2 (patch) | |
tree | 3ded067930759909fba88cb2347a030d225740d8 | |
parent | fd2f399c1839fedc63ea8abe47feae6e42b6ad96 (diff) |
add sparse-selfadjoint to sparse-selfadjoint assignment operators
(no need to use .twistedBy(I) anymore)
-rw-r--r-- | Eigen/src/SparseCore/SparseSelfAdjointView.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Eigen/src/SparseCore/SparseSelfAdjointView.h b/Eigen/src/SparseCore/SparseSelfAdjointView.h index feb433720..2c58c3908 100644 --- a/Eigen/src/SparseCore/SparseSelfAdjointView.h +++ b/Eigen/src/SparseCore/SparseSelfAdjointView.h @@ -135,6 +135,20 @@ template<typename MatrixType, unsigned int UpLo> class SparseSelfAdjointView permutedMatrix.evalTo(*this); return *this; } + + + SparseSelfAdjointView& operator=(const SparseSelfAdjointView& src) + { + PermutationMatrix<Dynamic> pnull; + return *this = src.twistedBy(pnull); + } + + template<typename SrcMatrixType,unsigned int SrcUpLo> + SparseSelfAdjointView& operator=(const SparseSelfAdjointView<SrcMatrixType,SrcUpLo>& src) + { + PermutationMatrix<Dynamic> pnull; + return *this = src.twistedBy(pnull); + } // const SparseLLT<PlainObject, UpLo> llt() const; |