104 ++n_component_per_group[component.group_id];
108 unsigned int n_coefficients = 1;
109 for (
unsigned int g = 0; g < n_component_per_group.
size(); ++g) {
111 int n = n_component_per_group[g];
115 for (num = 1, den = 1; d > 0; num *= (n+dmax--), den*= d--);
117 n_coefficients *= num / den;
122 <<
" expected " << n_coefficients;
130 if (coeff->getWidth() != psf_width || coeff->getHeight() != psf_height) {
131 throw Elements::Exception() <<
"Malformed variable PSF, coefficient matrices do not have the same dimensions";