template<class Type>
struct Functor {
v = v * v;
return (y * my).sum() + exp(x).sum();
}
};
template<class Type>
Type objective_function<Type>::operator() ()
{
using newton::newton_config_t;
Functor<TMBad::ad_aug> F(m, x);
return sol.sum();
}
License: