mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix storage index type in empty permutations
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user