bug fix in SuperLU support: the meaning of Matrix::stride() changed for vectors

This commit is contained in:
Gael Guennebaud 2009-09-07 10:55:33 +02:00
parent 5eea8f1824
commit 61fe2b6a56

View File

@ -161,7 +161,7 @@ struct SluMatrix : SuperMatrix
res.nrow = mat.rows();
res.ncol = mat.cols();
res.storage.lda = mat.stride();
res.storage.lda = MatrixType::IsVectorAtCompileTime ? mat.size() : mat.stride();
res.storage.values = mat.data();
return res;
}