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 @@ -84,7 +84,6 @@ if(CMAKE_PROJECT_NAME STREQUAL ROOT)
84
84
Minuit2/MnSeedGenerator.h
85
85
Minuit2/MnSimplex.h
86
86
Minuit2/MnStrategy.h
87
- Minuit2/MnTiny.h
88
87
Minuit2/MnTraceObject.h
89
88
Minuit2/MnUserCovariance.h
90
89
Minuit2/MnUserFcn.h
@@ -149,7 +148,6 @@ if(CMAKE_PROJECT_NAME STREQUAL ROOT)
149
148
src/MnScan.cxx
150
149
src/MnSeedGenerator.cxx
151
150
src/MnStrategy.cxx
152
- src/MnTiny.cxx
153
151
src/MnTraceObject.cxx
154
152
src/MnUserFcn.cxx
155
153
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 @@ -74,7 +74,6 @@ set(MINUIT2_HEADERS
74
74
MnSeedGenerator.h
75
75
MnSimplex.h
76
76
MnStrategy.h
77
- MnTiny.h
78
77
MnTraceObject.h
79
78
MnUserCovariance.h
80
79
MnUserFcn.h
@@ -138,7 +137,6 @@ set(MINUIT2_SOURCES
138
137
MnScan.cxx
139
138
MnSeedGenerator.cxx
140
139
MnStrategy.cxx
141
- MnTiny.cxx
142
140
MnTraceObject.cxx
143
141
MnUserFcn.cxx
144
142
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