add sparse-selfadjoint to sparse-selfadjoint assignment operators

(no need to use .twistedBy(I) anymore)
This commit is contained in:
Gael Guennebaud 2012-03-29 11:28:43 +02:00
parent fd2f399c18
commit 8ff882aa4c

View File

@ -135,6 +135,20 @@ template<typename MatrixType, unsigned int UpLo> class SparseSelfAdjointView
permutedMatrix.evalTo(*this); permutedMatrix.evalTo(*this);
return *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; // const SparseLLT<PlainObject, UpLo> llt() const;