43 return (*
this)(par,
gra);
55 MnPrint print(
"Numerical2PGradientCalculator");
70 double vrysml = 8. * eps * eps;
83 print.
Debug(
"Calculating gradient around function value",
fcnmin,
"\n\t at point", par.
Vec());
105 for (
int i = 0; i <
int(
n); i++) {
117 for (
unsigned int j = 0;
j <
ncycle;
j++) {
119 double step = std::max(
optstp, std::fabs(0.1 *
gstep(i)));
165 if (i == 0 &&
j == 0) {
167 printtl.Trace([&](std::ostream &os) {
169 print.
Trace([&](std::ostream &os) {
171 os << std::setw(10) <<
"parameter" << std::setw(6) <<
"cycle" << std::setw(15) <<
"x" << std::setw(15)
172 <<
"step" << std::setw(15) <<
"f1" << std::setw(15) <<
"f2" << std::setw(15) <<
"grd"
173 << std::setw(15) <<
"g2" << std::endl;
177 printtl.Trace([&](std::ostream &os) {
179 print.
Trace([&](std::ostream &os) {
181 const int pr = os.precision(13);
183 os << std::setw(10) <<
Trafo().Name(
iext) << std::setw(5) <<
j <<
" " <<
x(i) <<
" " << step <<
" "
184 <<
fs1 <<
" " <<
fs2 <<
" " <<
grd(i) <<
" " <<
g2(i) << std::endl;
210 print.
Debug([&](std::ostream &os) {
211 const int pr = os.precision(13);
213 os << std::setw(14) <<
"Parameter" << std::setw(14) <<
"Gradient" << std::setw(14) <<
"g2 " << std::setw(14)
214 <<
"step" << std::endl;
215 for (
int i = 0; i <
int(
n); i++) {
217 os << std::setw(14) <<
Trafo().Name(
iext) <<
" " <<
grd(i) <<
" " <<
g2(i) <<
" " <<
gstep(i) << std::endl;
234 return Strategy().GradientNCycles();
240 return Strategy().GradientStepTolerance();
246 return Strategy().GradientTolerance();
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void gc
Class to calculate an initial estimate of the gradient.
const MnAlgebraicVector & Vec() const
Sets the relative floating point (double) arithmetic precision.
void Debug(const Ts &... args)
void Trace(const Ts &... args)
const MnUserTransformation & Trafo() const
const MnStrategy & Strategy() const
const MnMachinePrecision & Precision() const
FunctionGradient operator()(const MinimumParameters &) const override
double GradTolerance() const
const MnUserTransformation & fTransformation
unsigned int Ncycle() const
double StepTolerance() const
CPyCppyy::Parameter Parameter
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...