#include "Math/RootFinderAlgorithms.h"
#include "GSLRootFSolver.h"
#include "GSLRootFdFSolver.h"
#include "gsl/gsl_roots.h"
namespace ROOT {
namespace Math {
namespace Roots {
Bisection::Bisection()
{
GSLRootFSolver * s = new GSLRootFSolver( gsl_root_fsolver_bisection );
SetSolver(s);
}
Bisection::~Bisection()
{
FreeSolver();
}
Bisection::Bisection(const Bisection &) : GSLRootFinder()
{
}
Bisection & Bisection::operator = (const Bisection &rhs)
{
if (this == &rhs) return *this;
return *this;
}
FalsePos::FalsePos()
{
GSLRootFSolver * s = new GSLRootFSolver( gsl_root_fsolver_falsepos );
SetSolver(s);
}
FalsePos::~FalsePos()
{
FreeSolver();
}
FalsePos::FalsePos(const FalsePos &) : GSLRootFinder()
{
}
FalsePos & FalsePos::operator = (const FalsePos &rhs)
{
if (this == &rhs) return *this;
return *this;
}
Brent::Brent()
{
GSLRootFSolver * s = new GSLRootFSolver( gsl_root_fsolver_brent );
SetSolver(s);
}
Brent::~Brent()
{
FreeSolver();
}
Brent::Brent(const Brent &) : GSLRootFinder()
{
}
Brent & Brent::operator = (const Brent &rhs)
{
if (this == &rhs) return *this;
return *this;
}
Newton::Newton()
{
GSLRootFdFSolver * s = new GSLRootFdFSolver( gsl_root_fdfsolver_newton );
SetSolver(s);
}
Newton::~Newton()
{
FreeSolver();
}
Newton::Newton(const Newton &) : GSLRootFinderDeriv()
{
}
Newton & Newton::operator = (const Newton &rhs)
{
if (this == &rhs) return *this;
return *this;
}
Secant::Secant()
{
GSLRootFdFSolver * s = new GSLRootFdFSolver( gsl_root_fdfsolver_secant );
SetSolver(s);
}
Secant::~Secant()
{
FreeSolver();
}
Secant::Secant(const Secant &) : GSLRootFinderDeriv()
{
}
Secant & Secant::operator = (const Secant &rhs)
{
if (this == &rhs) return *this;
return *this;
}
Steffenson::Steffenson()
{
GSLRootFdFSolver * s = new GSLRootFdFSolver( gsl_root_fdfsolver_steffenson );
SetSolver(s);
}
Steffenson::~Steffenson()
{
FreeSolver();
}
Steffenson::Steffenson(const Steffenson &) : GSLRootFinderDeriv()
{
}
Steffenson & Steffenson::operator = (const Steffenson &rhs)
{
if (this == &rhs) return *this;
return *this;
}
}
}
}
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.