diff options
author | Gael Guennebaud <g.gael@free.fr> | 2009-09-07 10:55:33 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2009-09-07 10:55:33 +0200 |
commit | 61fe2b6a567ac2df67d30e957342a3138b0d23b0 (patch) | |
tree | 79c17ef73af72123f77f70d0c957aa1fadd04988 /Eigen | |
parent | 5eea8f182405fd36eae8dc345cfdce146d7ca83f (diff) |
bug fix in SuperLU support: the meaning of Matrix::stride() changed for vectors
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Sparse/SuperLUSupport.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Sparse/SuperLUSupport.h b/Eigen/src/Sparse/SuperLUSupport.h index 98d598809..708f177e8 100644 --- a/Eigen/src/Sparse/SuperLUSupport.h +++ b/Eigen/src/Sparse/SuperLUSupport.h @@ -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; } |