From df9dfa145547529bf71afd4c6e8f3af947acaad0 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 27 Mar 2009 19:25:22 +0000 Subject: [PATCH] fix superLU backend: missing operator= --- Eigen/src/Sparse/SuperLUSupport.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Eigen/src/Sparse/SuperLUSupport.h b/Eigen/src/Sparse/SuperLUSupport.h index bbe9ef9ac..3c9a4fcce 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 {