aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-09-07 10:55:33 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-09-07 10:55:33 +0200
commit61fe2b6a567ac2df67d30e957342a3138b0d23b0 (patch)
tree79c17ef73af72123f77f70d0c957aa1fadd04988 /Eigen
parent5eea8f182405fd36eae8dc345cfdce146d7ca83f (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.h2
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;
}