They who can give up essential safety to obtain an improvement in performance, deserve neither safety nor performance.
Created by: chleh
(freely after B. Franklin)
0498c773 removed Eigen matrix initialization in release mode, which led to hard to find errors in a feature branch of @fparisio after rebasing. (Admittedly, valgrind would have found that error easily.)
How to deal with the initialization of Eigen matrices in general?
The save solution: Reactivate -DEIGEN_INITIALIZE_MATRICES_BY_ZERO
, maybe even always -DEIGEN_INITIALIZE_MATRICES_BY_NAN
.
IMHO not initializing for some configurations is a bad option, because due to long compile times or long run times of some tests, it is sometimes very awkward to recompile in debug mode.