We should wrap the calls to/reimplement Eigen::set_is_malloc_allowed since it modifies a static variable in an Eigen method, and a different variable may be updated when someone using RobOptim wants to update the same variable:
inline bool is_malloc_allowed_impl(bool update, bool new_value = false)
{
static bool value = true;
if (update == 1)
value = new_value;
return value;
}
We should wrap the calls to/reimplement
Eigen::set_is_malloc_allowed
since it modifies astatic
variable in an Eigen method, and a different variable may be updated when someone using RobOptim wants to update the same variable: