diff --git a/Eigen/src/Sparse/SuperLUSupport.h b/Eigen/src/Sparse/SuperLUSupport.h index bbe9ef9ac8..3c9a4fcced 100644 --- a/Eigen/src/Sparse/SuperLUSupport.h +++ b/Eigen/src/Sparse/SuperLUSupport.h @@ -60,7 +60,10 @@ struct SluMatrixMapHelper; */ struct SluMatrix : SuperMatrix { - SluMatrix() {} + SluMatrix() + { + Store = &storage; + } SluMatrix(const SluMatrix& other) : SuperMatrix(other) @@ -68,6 +71,14 @@ struct SluMatrix : SuperMatrix Store = &storage; storage = other.storage; } + + SluMatrix& operator=(const SluMatrix& other) + { + SuperMatrix::operator=(static_cast(other)); + Store = &storage; + storage = other.storage; + return *this; + } struct {