23 std::vector<double> par_vec;
24 par_vec.resize(par.
Vec().
size());
25 for (std::size_t ix = 0; ix < par.
Vec().
size(); ++ix) {
26 par_vec[ix] = par.
Vec()(ix);
33 for (
unsigned int i = 0; i < par.
Vec().
size(); i++) {
38 MnPrint print(
"ExternalInternalGradientCalculator");
39 print.
Debug(
"User given gradient in Minuit2",
v);
47 std::vector<double> par_vec;
48 par_vec.resize(par.
Vec().
size());
49 for (std::size_t ix = 0; ix < par.
Vec().
size(); ++ix) {
50 par_vec[ix] = par.
Vec()(ix);
53 std::vector<double> previous_grad(functionGradient.
Grad().
Data(), functionGradient.
Grad().
Data() + functionGradient.
Grad().
size());
54 std::vector<double> previous_g2(functionGradient.
G2().
Data(), functionGradient.
G2().
Data() + functionGradient.
G2().
size());
55 std::vector<double> previous_gstep(functionGradient.
Gstep().
Data(), functionGradient.
Gstep().
Data() + functionGradient.
Gstep().
size());
63 for (
unsigned int i = 0; i < par.
Vec().
size(); i++) {
66 v_g2(i) = previous_g2[ext];
67 v_gstep(i) = previous_gstep[ext];
70 MnPrint print(
"ExternalInternalGradientCalculator");
71 print.
Debug(
"User given gradient in Minuit2",
v,
"g2", v_g2,
"step size", v_gstep);
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
const MnUserTransformation & fTransformation
const FCNGradientBase & fGradCalc
virtual FunctionGradient operator()(const MinimumParameters &) const
virtual std::vector< double > Gradient(const std::vector< double > &) const =0
virtual std::vector< double > GradientWithPrevResult(const std::vector< double > ¶meters, double *, double *, double *) const
const MnAlgebraicVector & Gstep() const
const MnAlgebraicVector & Grad() const
const MnAlgebraicVector & G2() const
const double * Data() const
unsigned int size() const
const MnAlgebraicVector & Vec() const
void Debug(const Ts &... args)
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...