mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Fix A=A with A a SparseMatrix
This commit is contained in:
parent
9ab3811cc5
commit
bd0474adbb
@ -679,7 +679,7 @@ class SparseMatrix
|
|||||||
{
|
{
|
||||||
swap(other.const_cast_derived());
|
swap(other.const_cast_derived());
|
||||||
}
|
}
|
||||||
else
|
else if(this!=&other)
|
||||||
{
|
{
|
||||||
initAssignment(other);
|
initAssignment(other);
|
||||||
if(other.isCompressed())
|
if(other.isCompressed())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user