Commits

Renaud Miel authored 493dde3f643 Merge
Merge branch 'master' into CAS-10682
No tags

casatools/src/code/components/SpectralComponents/GaussianMultipletSpectralElement.cc

Modified
311 311 if (pIndex > 0) {
312 312 p++;
313 313 }
314 314 }
315 315 }
316 316
317 317 ostream &operator<<(ostream& os, const GaussianMultipletSpectralElement& elem) {
318 318 os << SpectralElement::fromType((elem.getType())) << " element: " << endl;
319 319 os << " Function: " << elem.getFunction() << endl;
320 320 os << " Gaussians:" << endl;
321 - Vector<GaussianSpectralElement> gaussians = elem.getGaussians();
321 + Vector<GaussianSpectralElement> gaussians(elem.getGaussians());
322 322 for (uInt i=0; i<gaussians.size(); i++) {
323 323 os << "Gaussian " << i << ": " << gaussians[i] << endl;
324 324 }
325 325 Matrix<Double> r = elem.getConstraints();
326 326 os << "Constraints: " << endl;
327 327 for (uInt i=1; i<gaussians.size(); i++) {
328 328 for (uInt j=0; j<3; j++) {
329 329 Double v = r(i-1, j);
330 330 if (v != 0) {
331 331 switch (j) {

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut