File tree 6 files changed +17
-70
lines changed
6 files changed +17
-70
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,6 @@ if(CMAKE_PROJECT_NAME STREQUAL ROOT)
83
83
Minuit2/MnSeedGenerator.h
84
84
Minuit2/MnSimplex.h
85
85
Minuit2/MnStrategy.h
86
- Minuit2/MnTiny.h
87
86
Minuit2/MnTraceObject.h
88
87
Minuit2/MnUserCovariance.h
89
88
Minuit2/MnUserFcn.h
@@ -148,7 +147,6 @@ if(CMAKE_PROJECT_NAME STREQUAL ROOT)
148
147
src/MnScan.cxx
149
148
src/MnSeedGenerator.cxx
150
149
src/MnStrategy.cxx
151
- src/MnTiny.cxx
152
150
src/MnTraceObject.cxx
153
151
src/MnUserFcn.cxx
154
152
src/MnUserParameterState.cxx
Original file line number Diff line number Diff line change @@ -52,8 +52,12 @@ class MnMachinePrecision {
52
52
void ComputePrecision ();
53
53
54
54
private:
55
+ double One () const ;
56
+ double Tiny (double epsp1) const ;
57
+
55
58
double fEpsMac ;
56
59
double fEpsMa2 ;
60
+ double fOne = 1 .;
57
61
};
58
62
59
63
} // namespace Minuit2
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -73,7 +73,6 @@ set(MINUIT2_HEADERS
73
73
MnSeedGenerator.h
74
74
MnSimplex.h
75
75
MnStrategy.h
76
- MnTiny.h
77
76
MnTraceObject.h
78
77
MnUserCovariance.h
79
78
MnUserFcn.h
@@ -137,7 +136,6 @@ set(MINUIT2_SOURCES
137
136
MnScan.cxx
138
137
MnSeedGenerator.cxx
139
138
MnStrategy.cxx
140
- MnTiny.cxx
141
139
MnTraceObject.cxx
142
140
MnUserFcn.cxx
143
141
MnUserParameterState.cxx
Original file line number Diff line number Diff line change 8
8
**********************************************************************/
9
9
10
10
#include " Minuit2/MnMachinePrecision.h"
11
- #include " Minuit2/MnTiny.h"
12
11
#include < limits>
13
12
14
13
namespace ROOT {
@@ -39,8 +38,6 @@ void MnMachinePrecision::ComputePrecision()
39
38
fEpsMa2 = 2.*std::sqrt(fEpsMac);
40
39
*/
41
40
42
- MnTiny mytiny;
43
-
44
41
// calculate machine precision
45
42
double epstry = 0.5 ;
46
43
double epsbak = 0 .;
@@ -49,7 +46,7 @@ void MnMachinePrecision::ComputePrecision()
49
46
for (int i = 0 ; i < 100 ; i++) {
50
47
epstry *= 0.5 ;
51
48
epsp1 = one + epstry;
52
- epsbak = mytiny (epsp1);
49
+ epsbak = Tiny (epsp1);
53
50
if (epsbak < epstry) {
54
51
fEpsMac = 8 . * epstry;
55
52
fEpsMa2 = 2 . * std::sqrt (fEpsMac );
@@ -58,6 +55,18 @@ void MnMachinePrecision::ComputePrecision()
58
55
}
59
56
}
60
57
58
+ double MnMachinePrecision::One () const
59
+ {
60
+ return fOne ;
61
+ }
62
+
63
+ double MnMachinePrecision::Tiny (double epsp1) const
64
+ {
65
+ // evaluate minimal difference between two floating points
66
+ double result = epsp1 - One ();
67
+ return result;
68
+ }
69
+
61
70
} // namespace Minuit2
62
71
63
72
} // namespace ROOT
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments