From 8ff882aa4cca8cd3e809a16bfb4e55db1b8277e2 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 29 Mar 2012 11:28:43 +0200 Subject: [PATCH] add sparse-selfadjoint to sparse-selfadjoint assignment operators (no need to use .twistedBy(I) anymore) --- Eigen/src/SparseCore/SparseSelfAdjointView.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 class SparseSelfAdjointView permutedMatrix.evalTo(*this); return *this; } + + + SparseSelfAdjointView& operator=(const SparseSelfAdjointView& src) + { + PermutationMatrix pnull; + return *this = src.twistedBy(pnull); + } + + template + SparseSelfAdjointView& operator=(const SparseSelfAdjointView& src) + { + PermutationMatrix pnull; + return *this = src.twistedBy(pnull); + } // const SparseLLT llt() const;