diff options
author | 2009-03-27 19:25:22 +0000 | |
---|---|---|
committer | 2009-03-27 19:25:22 +0000 | |
commit | df9dfa145547529bf71afd4c6e8f3af947acaad0 (patch) | |
tree | e27703b86d59349334ce06d71c7af10a060670c5 | |
parent | e9f61674851ea3e8114fdd4111f85d66bbcfb8d5 (diff) |
fix superLU backend: missing operator=
-rw-r--r-- | Eigen/src/Sparse/SuperLUSupport.h | 13 |
1 files changed, 12 insertions, 1 deletions
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<const SuperMatrix&>(other)); + Store = &storage; + storage = other.storage; + return *this; + } struct { |