Re: [tng-devel] Eigen 2.0 vs. zero sized matrices |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/tng-devel Archives
]
An Eigen developer replied and recommends to use the default constructor, i.e.
Matrix tmp;
instead of
Matrix tmp(0,0);
to create an empty matrix using Eigen 2.0.
Zitat von Sebastian Wolff <sw@xxxxxxxxxxxxxxxxxxxx>:
You were right,
there is a explicit ei_assert() checking the dimension on Matrix
creation in Eigen's source code. I wonder why this never appeared on
Linux since no #define-s can turn the assert off.
Ways trick around:
(1) Move to Eigen's development version where this check has been removed.
(2) disable all asserts in Eigen: The options
-DEIGEN_NO_DEBUG and -DNDEBUG
disable all asserts. The symbols must be defined byfore any Eigen
header is included.
Regards
SW