1 function R = eval_affine_decomp(R_comp_ptr,R_coeff_ptr,model,model_data)
2 %
function R = eval_affine_decomp(R_comp_ptr,R_coeff_ptr,model,model_data)
4 %
function returning either the components, coefficients or their
5 % linear combination depending on model.decomp_mode, where
6 % expected argument list: R_comp_ptr(model,model_data);
9 if model.decomp_mode == 2
10 R = R_coeff_ptr(model);
12 if model.decomp_mode == 1
13 R = R_comp_ptr(model,model_data);
15 Rcomp = R_comp_ptr(model,model_data);
16 Rcoeff = R_coeff_ptr(model);
17 R = lincomb_sequence(Rcomp,Rcoeff);