ROOT
Version v6.32
master
v6.34
v6.30
v6.28
v6.26
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
Reference Guide
▼
ROOT
ROOT Reference Documentation
Tutorials
►
Functional Parts
►
Namespaces
►
All Classes
▼
Files
▼
File List
►
bindings
►
core
►
documentation
►
geom
►
graf2d
►
graf3d
►
gui
►
hist
►
html
►
io
►
main
▼
math
doc
►
fftw
►
foam
►
fumili
►
genetic
►
genvector
►
mathcore
►
mathmore
►
matrix
►
minuit
▼
minuit2
doc
►
inc
▼
src
AnalyticalGradientCalculator.cxx
BasicMinimumError.cxx
►
BFGSErrorUpdator.cxx
CombinedMinimumBuilder.cxx
►
DavidonErrorUpdator.cxx
ExternalInternalGradientCalculator.cxx
►
FumiliBuilder.cxx
►
FumiliErrorUpdator.cxx
FumiliGradientCalculator.cxx
FumiliMinimizer.cxx
FumiliStandardChi2FCN.cxx
FumiliStandardMaximumLikelihoodFCN.cxx
HessianGradientCalculator.cxx
InitialGradientCalculator.cxx
►
LaEigenValues.cxx
►
LaInnerProduct.cxx
►
LaInverse.cxx
►
LaOuterProduct.cxx
►
LaSumOfElements.cxx
►
LaVtMVSimilarity.cxx
MinimumBuilder.cxx
►
Minuit2Minimizer.cxx
MnApplication.cxx
►
mnbins.cxx
MnContours.cxx
MnCovarianceSqueeze.cxx
►
mndasum.cxx
►
mndaxpy.cxx
►
mnddot.cxx
►
mndscal.cxx
►
mndspmv.cxx
►
mndspr.cxx
►
MnEigen.cxx
MnFcn.cxx
MnFumiliMinimize.cxx
MnFunctionCross.cxx
MnGlobalCorrelationCoeff.cxx
MnHesse.cxx
MnLineSearch.cxx
►
mnlsame.cxx
MnMachinePrecision.cxx
MnMinos.cxx
MnParabolaFactory.cxx
MnParameterScan.cxx
►
MnPlot.cxx
►
MnPosDef.cxx
►
MnPrint.cxx
►
MnPrintImpl.cxx
MnScan.cxx
MnSeedGenerator.cxx
MnStrategy.cxx
►
mnteigen.cxx
MnTiny.cxx
►
mntplot.cxx
MnTraceObject.cxx
MnUserFcn.cxx
MnUserParameters.cxx
MnUserParameterState.cxx
►
MnUserTransformation.cxx
►
mnvert.cxx
►
mnxerbla.cxx
ModularFunctionMinimizer.cxx
MPIProcess.cxx
NegativeG2LineSearch.cxx
Numerical2PGradientCalculator.cxx
►
NumericalDerivator.cxx
ParametricFunction.cxx
ScanBuilder.cxx
SimplexBuilder.cxx
SimplexParameters.cxx
SimplexSeedGenerator.cxx
SinParameterTransformation.cxx
SqrtLowParameterTransformation.cxx
SqrtUpParameterTransformation.cxx
TMinuit2TraceObject.cxx
►
VariableMetricBuilder.cxx
►
VariableMetricEDMEstimator.cxx
►
mlp
►
physics
►
quadp
►
rtools
►
smatrix
►
splot
►
unuran
►
vecops
►
montecarlo
►
net
►
proof
►
roofit
►
sql
►
tmva
►
tree
►
tutorials
►
v6-32-00-patches
►
File Members
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
mndasum.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
/* dasum.f -- translated by f2c (version 20010320).
11
You must link the resulting object file with the libraries:
12
-lf2c -lm (in that order)
13
*/
14
15
#include <cmath>
16
17
namespace
ROOT
{
18
19
namespace
Minuit2 {
20
21
double
mndasum
(
unsigned
int
n
,
const
double
*
dx
,
int
incx
)
22
{
23
/* System generated locals */
24
int
i__1
,
i__2
;
25
double
ret_val
,
d__1
,
d__2
,
d__3
,
d__4
,
d__5
,
d__6
;
26
27
/* Local variables */
28
int
i__
,
m
;
29
double
dtemp
;
30
int
nincx
,
mp1
;
31
32
/* takes the sum of the absolute values. */
33
/* jack dongarra, linpack, 3/11/78. */
34
/* modified 3/93 to return if incx .le. 0. */
35
/* modified 12/3/93, array(1) declarations changed to array(*) */
36
37
/* Parameter adjustments */
38
--
dx
;
39
40
/* Function Body */
41
ret_val
= 0.;
42
dtemp
= 0.;
43
if
(
n
<= 0 ||
incx
<= 0) {
44
return
ret_val
;
45
}
46
if
(
incx
== 1) {
47
goto
L20
;
48
}
49
50
/* code for increment not equal to 1 */
51
52
nincx
=
n
*
incx
;
53
i__1
=
nincx
;
54
i__2
=
incx
;
55
for
(
i__
= 1;
i__2 < 0 ? i__ >
=
i__1
:
i__
<=
i__1
;
i__
+=
i__2
) {
56
dtemp
+= (
d__1
=
dx
[
i__
], std::fabs(
d__1
));
57
/* L10: */
58
}
59
ret_val
=
dtemp
;
60
return
ret_val
;
61
62
/* code for increment equal to 1 */
63
64
/* clean-up loop */
65
66
L20
:
67
m
=
n
% 6;
68
if
(
m
== 0) {
69
goto
L40
;
70
}
71
i__2
=
m
;
72
for
(
i__
= 1;
i__
<=
i__2
; ++
i__
) {
73
dtemp
+= (
d__1
=
dx
[
i__
], std::fabs(
d__1
));
74
/* L30: */
75
}
76
if
(
n
< 6) {
77
goto
L60
;
78
}
79
L40
:
80
mp1
=
m
+ 1;
81
i__2
=
n
;
82
for
(
i__
=
mp1
;
i__
<=
i__2
;
i__
+= 6) {
83
dtemp
=
dtemp
+ (
d__1
=
dx
[
i__
], std::fabs(
d__1
)) + (
d__2
=
dx
[
i__
+ 1], std::fabs(
d__2
)) +
84
(
d__3
=
dx
[
i__
+ 2], std::fabs(
d__3
)) + (
d__4
=
dx
[
i__
+ 3], std::fabs(
d__4
)) +
85
(
d__5
=
dx
[
i__
+ 4], std::fabs(
d__5
)) + (
d__6
=
dx
[
i__
+ 5], std::fabs(
d__6
));
86
/* L50: */
87
}
88
L60
:
89
ret_val
=
dtemp
;
90
return
ret_val
;
91
}
/* dasum_ */
92
93
}
// namespace Minuit2
94
95
}
// namespace ROOT
TRangeDynCast
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Definition
TCollection.h:358
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
n
const Int_t n
Definition
legend1.C:16
ROOT::Minuit2::mndasum
double mndasum(unsigned int, const double *, int)
Definition
mndasum.cxx:21
ROOT
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Definition
EExecutionPolicy.hxx:4
m
TMarker m
Definition
textangle.C:8
math
minuit2
src
mndasum.cxx
ROOT v6-32 - Reference Guide Generated on Wed Apr 2 2025 08:24:36 (GVA Time) using Doxygen 1.10.0