diff options
author | Gael Guennebaud <g.gael@free.fr> | 2015-06-09 23:11:24 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2015-06-09 23:11:24 +0200 |
commit | feaf76c00103df5f0ae2d7a365a91f70253922cd (patch) | |
tree | 3846bcf95648a0e619cbc658bdd8ebe60edd6723 /Eigen/src/SparseCore/SparseMatrix.h | |
parent | f899aeb301f758218b8d126a7165f7e31fcc7cf7 (diff) |
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.
Diffstat (limited to 'Eigen/src/SparseCore/SparseMatrix.h')
-rw-r--r-- | Eigen/src/SparseCore/SparseMatrix.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index d10880cb5..d9964d0f6 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -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()) { |