mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-07 13:33:24 +08:00
bug fix in SuperLU support: the meaning of Matrix::stride() changed for vectors
This commit is contained in:
parent
5eea8f1824
commit
61fe2b6a56
@ -161,7 +161,7 @@ struct SluMatrix : SuperMatrix
|
|||||||
res.nrow = mat.rows();
|
res.nrow = mat.rows();
|
||||||
res.ncol = mat.cols();
|
res.ncol = mat.cols();
|
||||||
|
|
||||||
res.storage.lda = mat.stride();
|
res.storage.lda = MatrixType::IsVectorAtCompileTime ? mat.size() : mat.stride();
|
||||||
res.storage.values = mat.data();
|
res.storage.values = mat.data();
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user