ROOT
v6-20
Reference Guide
LaSumOfElements.cxx
Go to the documentation of this file.
1
// @(#)root/minuit2:$Id$
2
// Authors: M. Winkler, F. James, L. Moneta, A. Zsenei 2003-2005
3
4
/**********************************************************************
5
* *
6
* Copyright (c) 2005 LCG ROOT Math team, CERN/PH-SFT *
7
* *
8
**********************************************************************/
9
10
#include "
Minuit2/LAVector.h
"
11
#include "
Minuit2/LASymMatrix.h
"
12
13
namespace
ROOT
{
14
15
namespace
Minuit2 {
16
17
18
double
mndasum
(
unsigned
int
,
const
double
*,
int
);
19
20
double
sum_of_elements
(
const
LAVector
&
v
) {
21
// calculate the absolute sum of the vector elements using mndasum
22
// which is a translation from dasum from BLAS
23
return
mndasum
(
v
.size(),
v
.Data(), 1);
24
}
25
26
double
sum_of_elements
(
const
LASymMatrix
&
m
) {
27
// calculate the absolute sum of all the matrix elements using mndasum
28
// which is a translation of dasum from BLAS
29
return
mndasum
(
m
.size(),
m
.Data(), 1);
30
}
31
32
}
// namespace Minuit2
33
34
}
// namespace ROOT
LASymMatrix.h
LAVector.h
ROOT::Minuit2::LASymMatrix
Class describing a symmetric matrix of size n.
Definition:
LASymMatrix.h:51
ROOT::Minuit2::LAVector
Definition:
LAVector.h:33
ROOT::Minuit2::mndasum
double mndasum(unsigned int, const double *, int)
Definition:
mndasum.cxx:22
ROOT::Minuit2::sum_of_elements
double sum_of_elements(const LASymMatrix &)
Definition:
LaSumOfElements.cxx:26
ROOT
VSD Structures.
Definition:
StringConv.hxx:21
v
@ v
Definition:
rootcling_impl.cxx:3622
m
auto * m
Definition:
textangle.C:8
math
minuit2
src
LaSumOfElements.cxx
ROOT v6-20 - Reference Guide Generated on Fri Apr 1 2022 00:22:21 (GVA Time) using Doxygen 1.9.4