Two things.
First, we should be turning off Eigen validation in
Stan in the makefiles using the -DEIGEN_NO_DEBUG option to
set the EIGEN_NO_DEBUG property.
We're already checking those ranges ourselves.
On 9/3/12 8:04 PM, Ben Goodrich wrote:
> That sounds like a good idea, as long as it can be turned off with -DNDEBUG or whatever. I don't know how to do that for
> std::vectors though.
Second, we just need to go through the getters
(I think in math/matrix) and apply the relevant
#ifdefs.
I think I've been putting it off because I'm
really opposed to preprocessor voodoo. But this
I can live with.
Just to confirm, I think the decision was to turn
off Stan range checking if either the NDEBUG or STAN_NO_DEBUG
property was defined (e.g., by using -DSTAN_NO_DEBUG as a compiler
argument).
I'll push that through unless anyone objects.
- Bob