mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-12 14:25:16 +08:00
fixed cholesky with 0 sized matrix (cf. #785)
This commit is contained in:
parent
4d3e50036f
commit
4dd126c630
@ -107,6 +107,10 @@ namespace lapacke_llt_helpers {
|
|||||||
static Index blocked(MatrixType& m)
|
static Index blocked(MatrixType& m)
|
||||||
{
|
{
|
||||||
eigen_assert(m.rows() == m.cols());
|
eigen_assert(m.rows() == m.cols());
|
||||||
|
if(m.rows() == 0) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
/* Set up parameters for ?potrf */
|
/* Set up parameters for ?potrf */
|
||||||
lapack_int size = convert_index<lapack_int>(m.rows());
|
lapack_int size = convert_index<lapack_int>(m.rows());
|
||||||
lapack_int StorageOrder = MatrixType::Flags&RowMajorBit?RowMajor:ColMajor;
|
lapack_int StorageOrder = MatrixType::Flags&RowMajorBit?RowMajor:ColMajor;
|
||||||
|
Loading…
Reference in New Issue
Block a user