28#ifndef ROOT_Math_GSLMultiRootFinder
29#define ROOT_Math_GSLMultiRootFinder
45 class GSLMultiRootBaseSolver;
169 template<
class FuncIterator>
172 for (FuncIterator itr = begin; itr != end; ++itr) {
192 template <
class Function>
209 const double *
X()
const;
213 const double *
FVal()
const;
216 const double *
Dx()
const;
225 bool Solve(
const double *
x,
int maxIter = 0,
double absTol = 0,
double relTol = 0);
238 const char *
Name()
const;
263 void PrintState(std::ostream & os = std::cout);
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
Double_t(* Function)(Double_t)
GSLMultiRootBaseSolver, internal class for implementing GSL multi-root finders This is the base class...
Class for Multidimensional root finding algorithms bassed on GSL.
unsigned int Dim() const
return the number of sunctions set in the class.
const double * Dx() const
return the last step size
GSLMultiRootFinder(GSLMultiRootFinder &&)=delete
virtual ~GSLMultiRootFinder()
destructor
const double * FVal() const
return the function values f(X) solving the system i.e.
void SetType(EDerivType type)
set the type of algorithm using derivatives
void SetType(EType type)
set the type for an algorithm without derivatives
std::vector< ROOT::Math::IMultiGenFunction * > fFunctions
bool Solve(const double *x, int maxIter=0, double absTol=0, double relTol=0)
Find the root starting from the point X; Use the number of iteration and tolerance if given otherwise...
EType
enumeration specifying the types of GSL multi root finders which do not require the derivatives
void SetPrintLevel(int level)
std::pair< bool, int > GetType(const char *name)
bool SetFunctionList(FuncIterator begin, FuncIterator end)
const char * Name() const
Return the algorithm name used for solving Note the name is available only after having called solved...
void PrintState(std::ostream &os=std::cout)
print iteration state
int PrintLevel() const
return the print level
GSLMultiRootBaseSolver * fSolver
int Status() const
Return the status of last root finding.
EDerivType
enumeration specifying the types of GSL multi root finders requiring the derivatives
GSLMultiRootFinder(const GSLMultiRootFinder &)=delete
int AddFunction(Function &f, int ndim)
same method as before but using any function implementing the operator(), so can be wrapped in a IMul...
void Clear()
clear list of functions
GSLMultiRootFinder & operator=(const GSLMultiRootFinder &)=delete
static void SetDefaultTolerance(double abstol, double reltol=0)
set tolerance (absolute and relative) relative tolerance is only use to verify the convergence do it ...
int AddFunction(const ROOT::Math::IMultiGenFunction &func)
const double * X() const
return the root X values solving the system
static void SetDefaultMaxIterations(int maxiter)
set maximum number of iterations
int Iterations() const
Return number of iterations.
Documentation for the abstract class IBaseFunctionMultiDim.
Template class to wrap any C++ callable object implementing operator() (const double * x) in a multi-...
Namespace for new Math classes and functions.
GSLMultiRootFinder MultiRootFinder
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...