10#ifndef ROOT_Minuit2_LASymMatrix
11#define ROOT_Minuit2_LASymMatrix
35int Mndaxpy(
unsigned int,
double,
const double*,
int,
double*,
int);
36int Mndscal(
unsigned int,
double,
double*,
int);
40int Invert ( LASymMatrix & );
95 memcpy(
fData,
v.Obj().Data(),
fSize*
sizeof(
double));
100 template<
class A,
class B,
class T>
104 (*this) =
sum.Obj().A();
105 (*this) +=
sum.Obj().B();
109 template<
class A,
class T>
115 (*this)=
sum.Obj().B();
117 (*this)+=
sum.Obj().A();
121 template<
class A,
class T>
124 (*this) = something.Obj();
125 (*this) *= something.f();
131 memcpy(
fData,
inv.Obj().Obj().Obj().Data(),
fSize*
sizeof(
double));
137 template<
class A,
class T>
138 LASymMatrix(
const ABObj<
sym,
ABSum<
ABObj<
sym,
MatrixInverse<
sym,
ABObj<sym, LASymMatrix, T>,
T>,
T>,
ABObj<sym, A, T> >,
T>&
sum) :
fSize(0),
fNRow(0),
fData(0) {
142 (*this)=
sum.Obj().B();
143 (*this)+=
sum.Obj().A();
149 template<
class A,
class T>
150 LASymMatrix(
const ABObj<
sym,
ABSum<
ABObj<
sym,
VectorOuterProduct<
ABObj<vec, LAVector, T>,
T>,
T>,
ABObj<sym, A, T> >,
T>&
sum) :
fSize(0),
fNRow(0),
fData(0) {
154 (*this)=
sum.Obj().B();
155 (*this)+=
sum.Obj().A();
176 assert(
fSize==
m.Obj().size());
177 if(
m.Obj().Data()==
fData) {
186 template<
class A,
class T>
208 Outer_prod(*
this,
m.Obj().Obj().Obj(),
m.f()*
m.Obj().Obj().f()*
m.Obj().Obj().f());
217 double operator()(
unsigned int row,
unsigned int col)
const {
220 return fData[col+row*(row+1)/2];
222 return fData[row+col*(col+1)/2];
228 return fData[col+row*(row+1)/2];
230 return fData[row+col*(col+1)/2];
259 assert(
fSize ==
v.Obj().size());
262 memcpy(
fData,
v.Obj().Data(),
fSize*
sizeof(
double));
267 template<
class A,
class T>
271 (*this) = something.Obj();
272 (*this) *= something.f();
275 tmp *= something.f();
283 template<
class A,
class B,
class T>
288 (*this) =
sum.Obj().A();
289 (*this) +=
sum.Obj().B();
293 tmp +=
sum.Obj().B();
301 template<
class A,
class T>
307 (*this) =
sum.Obj().B();
308 (*this) +=
sum.Obj().A();
313 tmp +=
sum.Obj().A();
325 fSize =
inv.Obj().Obj().Obj().size();
326 fNRow =
inv.Obj().Obj().Obj().Nrow();
328 memcpy(
fData,
inv.Obj().Obj().Obj().Data(),
fSize*
sizeof(
double));
329 (*this) *=
inv.Obj().Obj().f();
Class describing a symmetric matrix of size n.
LASymMatrix(const ABObj< sym, MatrixInverse< sym, ABObj< sym, LASymMatrix, T >, T >, T > &inv)
LASymMatrix & operator=(const ABObj< sym, LASymMatrix, T > &v)
LASymMatrix & operator-=(const LASymMatrix &m)
LASymMatrix(const ABObj< sym, ABSum< ABObj< sym, LASymMatrix, T >, ABObj< sym, A, T > >, T > &sum)
double & operator()(unsigned int row, unsigned int col)
const double * Data() const
unsigned int Ncol() const
double operator()(unsigned int row, unsigned int col) const
LASymMatrix & operator=(const LASymMatrix &v)
LASymMatrix & operator+=(const ABObj< sym, LASymMatrix, T > &m)
LASymMatrix(const ABObj< sym, ABSum< ABObj< sym, MatrixInverse< sym, ABObj< sym, LASymMatrix, T >, T >, T >, ABObj< sym, A, T > >, T > &sum)
LASymMatrix(const ABObj< sym, ABSum< ABObj< sym, A, T >, ABObj< sym, B, T > >, T > &sum)
LASymMatrix & operator*=(double scal)
LASymMatrix & operator+=(const ABObj< sym, A, T > &m)
LASymMatrix & operator=(const ABObj< sym, MatrixInverse< sym, ABObj< sym, LASymMatrix, T >, T >, T > &inv)
LASymMatrix(unsigned int n)
LASymMatrix(const ABObj< sym, LASymMatrix, T > &v)
LASymMatrix & operator=(const ABObj< sym, ABSum< ABObj< sym, A, T >, ABObj< sym, B, T > >, T > &sum)
LASymMatrix(const LASymMatrix &v)
unsigned int Nrow() const
LASymMatrix(const ABObj< sym, ABObj< sym, A, T >, T > &something)
LASymMatrix & operator+=(const ABObj< sym, MatrixInverse< sym, ABObj< sym, LASymMatrix, T >, T >, T > &m)
LASymMatrix & operator=(const ABObj< sym, ABSum< ABObj< sym, LASymMatrix, T >, ABObj< sym, A, T > >, T > &sum)
LASymMatrix(const ABObj< sym, ABSum< ABObj< sym, VectorOuterProduct< ABObj< vec, LAVector, T >, T >, T >, ABObj< sym, A, T > >, T > &sum)
LASymMatrix & operator+=(const LASymMatrix &m)
LASymMatrix & operator+=(const ABObj< sym, VectorOuterProduct< ABObj< vec, LAVector, T >, T >, T > &m)
unsigned int size() const
LASymMatrix & operator=(const ABObj< sym, ABObj< sym, A, T >, T > &something)
static StackAllocator & Get()
void * Allocate(size_t nBytes)
RPY_EXPORTED TCppObject_t Allocate(TCppType_t type)
int Invert(LASymMatrix &)
int Mndaxpy(unsigned int, double, const double *, int, double *, int)
int Mndscal(unsigned int, double, double *, int)
void Outer_prod(LASymMatrix &, const LAVector &, double f=1.)
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
void inv(rsa_NUMBER *, rsa_NUMBER *, rsa_NUMBER *)
static long int sum(long int i)