mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-15 13:15:57 +08:00
Fix storage index type in empty permutations
This commit is contained in:
parent
26cde4db3c
commit
69a7897e72
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user