mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
bug #910: add a StandardCompressedFormat option to Ref<SparseMatrix> to enforce standard compressed storage format.
If the input is not compressed, then this trigger a copy for a const Ref, and a runtime assert for non-const Ref.
This commit is contained in:
@@ -725,6 +725,9 @@ class SparseMatrix
|
||||
}
|
||||
else if(this!=&other)
|
||||
{
|
||||
#ifdef EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN
|
||||
EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN
|
||||
#endif
|
||||
initAssignment(other);
|
||||
if(other.isCompressed())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user