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

@ -137,6 +137,20 @@ template<typename MatrixType, unsigned int UpLo> class SparseSelfAdjointView
} }
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;
// const SparseLDLT<PlainObject, UpLo> ldlt() const; // const SparseLDLT<PlainObject, UpLo> ldlt() const;