Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
13namespace ROOT {
14
15namespace Minuit2 {
16
17double mndasum(unsigned int, const double *, int);
18
20{
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
27{
28 // calculate the absolute sum of all the matrix elements using mndasum
29 // which is a translation of dasum from BLAS
30 return mndasum(m.size(), m.Data(), 1);
31}
32
33} // namespace Minuit2
34
35} // namespace ROOT
Class describing a symmetric matrix of size n.
Definition LASymMatrix.h:45
double mndasum(unsigned int, const double *, int)
Definition mndasum.cxx:21
double sum_of_elements(const LASymMatrix &)
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
auto * m
Definition textangle.C:8