@@ -107,18 +107,19 @@ class SPlot: public detail::AddPdfBase<PDF1,PDF2,PDFs...>
107107 SPlot ( PDFSumExtendable<PDF1, PDF2, PDFs...> const & pdf, Iterator first, Iterator last):
108108 fPDFs ( pdf.GetPDFs() ),
109109 fFunctors ( pdf.GetFunctors()),
110+ fCovMatrix ( Eigen::Matrix<double , npdfs, npdfs>{} ),
110111 fBegin ( iterator( first, transformer( pdf.GetFunctors(), Eigen::Matrix<double , npdfs, npdfs>{} ))),
111112 fEnd (iterator( last , transformer( pdf.GetFunctors(), Eigen::Matrix<double , npdfs, npdfs>{} )))
112113
113114 {
114115 for (size_t i=0 ;i<npdfs; i++)
115116 fCoeficients [i] = pdf.GetCoeficient (i);
116117
117- fCovMatrix << 0.0 , 0.0 , 0.0 , 0.0 ;
118+ // fCovMatrix << 0.0, 0.0, 0.0, 0.0;
118119
119120
120- Eigen::Matrix<double , npdfs, npdfs> init;
121- init << 0.0 , 0.0 , 0.0 , 0.0 ;
121+ Eigen::Matrix<double , npdfs, npdfs> init{} ;
122+ // init << 0.0, 0.0, 0.0, 0.0;
122123
123124 fCovMatrix = hydra_thrust::transform_reduce (system_type (), first, last,
124125 detail::CovMatrixUnary<
0 commit comments