30 for (
unsigned int i = 0; i < par.
Vec().
size(); i++) {
34 v(i) = dd * grad[
ext];
40 MnPrint print(
"AnalyticalGradientCalculator");
41 print.
Debug(
"User given gradient in Minuit2",
v);
49 if (!this->
G2(par,
g2)) {
50 print.
Error(
"Error computing G2");
75 unsigned int n = par.
Vec().size();
80 MnPrint print(
"AnalyticalGradientCalculator::Hessian");
81 print.
Info(
"FCN cannot compute Hessian matrix");
86 for (
unsigned int i = 0; i <
n; i++) {
92 for (
unsigned int j = i;
j <
n;
j++) {
106 unsigned int n = par.
Vec().size();
110 MnPrint print(
"AnalyticalGradientCalculator::G2");
111 print.
Info(
"FCN cannot compute the 2nd derivatives vector (G2)");
116 for (
unsigned int i = 0; i <
n; i++) {
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.
virtual bool CanComputeG2() const
bool G2(const MinimumParameters &, MnAlgebraicVector &) const override
compute second derivatives (diagonal of Hessian)
virtual bool CanComputeHessian() const
const MnUserTransformation & fTransformation
const FCNBase & fGradFunc
FunctionGradient operator()(const MinimumParameters &) const override
bool Hessian(const MinimumParameters &, MnAlgebraicSymMatrix &) const override
compute Hessian matrix
Class describing a symmetric matrix of size n.
const MnAlgebraicVector & Vec() const
void Debug(const Ts &... args)
void Error(const Ts &... args)
void Info(const Ts &... args)
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...