commit 62772d5fb0c6c7661c7acaa73d21de4205579d73 Author: Paul Chelarescu Date: Fri Jun 22 15:34:20 2018 +0200 Patched LASymMatrix.h diff --git a/Minuit/LASymMatrix.h b/Minuit/LASymMatrix.h index 755eb11..976c0de 100644 --- a/Minuit/LASymMatrix.h +++ b/Minuit/LASymMatrix.h @@ -16,6 +16,7 @@ // #include #include "Minuit/StackAllocator.h" +#include //extern StackAllocator StackAllocatorHolder::get(); int mndaxpy(unsigned int, double, const double*, int, double*, int); @@ -37,7 +38,7 @@ public: LASymMatrix(unsigned int n) : theSize(n*(n+1)/2), theNRow(n), theData((double*)StackAllocatorHolder::get().allocate(sizeof(double)*n*(n+1)/2)) { // assert(theSize>0); - memset(theData, 0, theSize*sizeof(double)); + std::memset(theData, 0, theSize*sizeof(double)); // std::cout<<"LASymMatrix(unsigned int n), n= "<& v)"< LASymMatrix(const ABObj, T>, T>& inv) : theSize(inv.obj().obj().obj().size()), theNRow(inv.obj().obj().obj().nrow()), theData((double*)StackAllocatorHolder::get().allocate(sizeof(double)*inv.obj().obj().obj().size())) { - memcpy(theData, inv.obj().obj().obj().data(), theSize*sizeof(double)); + std::memcpy(theData, inv.obj().obj().obj().data(), theSize*sizeof(double)); mndscal(theSize, double(inv.obj().obj().f()), theData, 1); invert(*this); mndscal(theSize, double(inv.f()), theData, 1); @@ -236,7 +237,7 @@ public: assert(theSize == v.obj().size()); } //std::cout<<"theData= "< LASymMatrix& operator=(const ABObj, T>& something)"<