fix superLU backend: missing operator=

This commit is contained in:
Gael Guennebaud 2009-03-27 19:25:22 +00:00
parent e9f6167485
commit df9dfa1455

View File

@ -60,7 +60,10 @@ struct SluMatrixMapHelper;
*/
struct SluMatrix : SuperMatrix
{
SluMatrix() {}
SluMatrix()
{
Store = &storage;
}
SluMatrix(const SluMatrix& other)
: SuperMatrix(other)
@ -69,6 +72,14 @@ struct SluMatrix : SuperMatrix
storage = other.storage;
}
SluMatrix& operator=(const SluMatrix& other)
{
SuperMatrix::operator=(static_cast<const SuperMatrix&>(other));
Store = &storage;
storage = other.storage;
return *this;
}
struct
{
union {int nnz;int lda;};