mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
fixed cholesky with 0 sized matrix (cf. #785)
This commit is contained in:
parent
4d3e50036f
commit
4dd126c630
@ -35,7 +35,7 @@
|
||||
|
||||
#include "./InternalHeaderCheck.h"
|
||||
|
||||
namespace Eigen {
|
||||
namespace Eigen {
|
||||
|
||||
namespace internal {
|
||||
|
||||
@ -106,7 +106,11 @@ namespace lapacke_llt_helpers {
|
||||
template<typename MatrixType>
|
||||
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 */
|
||||
lapack_int size = convert_index<lapack_int>(m.rows());
|
||||
lapack_int StorageOrder = MatrixType::Flags&RowMajorBit?RowMajor:ColMajor;
|
||||
|
Loading…
Reference in New Issue
Block a user