template<class Type>
Type objective_function<Type>::operator() ()
{
int v1_size = v1.size();
v_concat_v1_v2 << v1,v2;
Type v1_sum = v1.sum();
Type v1_prod = v1.prod();
Type v1_times_v1_sum = (v1*v1).
sum();
Type v1_mincoeff =
min(v1);
int m1_size = m1.size();
Type m1_11 = m1(1,0);
m1.col(1) = v1;
Type m1_sum = m1.sum();
Type m1_prod = m1.prod();
Type m1_mean = m1.mean();
Type m1_trace = m1.trace();
int a1_size = a1.size();
int a1_rows = a1.rows();
int a1_cols = a1.cols();
Type a1_11 = a1(0,0);
a1.col(1) = v1;
Type a1_sum = a1.sum();
Type a1_mean = a1.mean();
REPORT(a2_times_a2_times_a2_by_cell);
a2_exp = exp(a2);
a_cpy = a0;
return 0;
}
License: