template<class Type>
Type objective_function<Type>::operator() ()
{
Type res;
Sigma.fill(0.1);
Sigma.diagonal() *= 10.0;
vector<Type> x0(3);
x0.fill(0.0);
res = N_0_Sigma(x0);
vector<Type> Lx(6);
Lx.fill(2.5);
vector<Type> x1(4);
x1.fill(2.0);
res = nll(x1 );
int n = 10;
vector<Type> x2(n);
x2.fill(1.0);
Type phi = 0.5;
AR1(phi)(x2);
vector<Type> sds2(n);
sds2.fill(2.0);
int p=2;
x.fill(1.0);
vector<Type> unconstrained_params(p*(p-1)/2);
unconstrained_params.fill(0.01);
return Type(0.0);
}
License: