This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Problems with empty matrices in v3.3

Tags: None
(comma "," separated)
kerryloux
Registered Member
Posts
6
Karma
0
Hello,

My application involves some operations with matrices having one dimension equal to zero. In v3.2 Eigen handled this just fine, but in v3.3 I'm running into some issues. I'm now seeing this runtime error:
Code: Select all
eigen/Eigen/src/Core/Redux.h:413: typename Eigen::internal::traits<T>::Scalar Eigen::DenseBase<Derived>::redux(const Func&) const [with BinaryOp = Eigen::internal::scalar_max_op<double, double>; Derived = Eigen::PartialReduxExpr<const Eigen::CwiseUnaryOp<Eigen::internal::scalar_abs_op<double>, const Eigen::Matrix<double, -1, -1> >, Eigen::internal::member_sum<double>, 0>; typename Eigen::internal::traits<T>::Scalar = double]: Assertion `this->rows()>0 && this->cols()>0 && "you are using an empty matrix"' failed.
Aborted (core dumped)


The file eigen/Eigen/src/Core/Redux.h has many assertions with this "you are using an empty matrix" explanation which are not there in v3.2.

Are there plans to continue supporting matrix operations for zero size matrices?

Thanks,

Kerry


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell