Fix storage index type in empty permutations

This commit is contained in:
Gael Guennebaud 2015-10-06 17:21:24 +02:00
parent 26cde4db3c
commit 69a7897e72

View File

@ -137,14 +137,14 @@ template<typename MatrixType, unsigned int _Mode> class SparseSelfAdjointView
SparseSelfAdjointView& operator=(const SparseSelfAdjointView& src) SparseSelfAdjointView& operator=(const SparseSelfAdjointView& src)
{ {
PermutationMatrix<Dynamic> pnull; PermutationMatrix<Dynamic,Dynamic,StorageIndex> pnull;
return *this = src.twistedBy(pnull); return *this = src.twistedBy(pnull);
} }
template<typename SrcMatrixType,unsigned int SrcMode> template<typename SrcMatrixType,unsigned int SrcMode>
SparseSelfAdjointView& operator=(const SparseSelfAdjointView<SrcMatrixType,SrcMode>& src) SparseSelfAdjointView& operator=(const SparseSelfAdjointView<SrcMatrixType,SrcMode>& src)
{ {
PermutationMatrix<Dynamic> pnull; PermutationMatrix<Dynamic,Dynamic,StorageIndex> pnull;
return *this = src.twistedBy(pnull); return *this = src.twistedBy(pnull);
} }