ROOT
master
Reference Guide
Loading...
Searching...
No Matches
RootFinderAlgorithms.cxx
Go to the documentation of this file.
1
// @(#)root/mathmore:$Id$
2
// Authors: L. Moneta, A. Zsenei 08/2005
3
4
/**********************************************************************
5
* *
6
* Copyright (c) 2004 ROOT Foundation, CERN/PH-SFT *
7
* *
8
* This library is free software; you can redistribute it and/or *
9
* modify it under the terms of the GNU General Public License *
10
* as published by the Free Software Foundation; either version 2 *
11
* of the License, or (at your option) any later version. *
12
* *
13
* This library is distributed in the hope that it will be useful, *
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16
* General Public License for more details. *
17
* *
18
* You should have received a copy of the GNU General Public License *
19
* along with this library (see file COPYING); if not, write *
20
* to the Free Software Foundation, Inc., 59 Temple Place, Suite *
21
* 330, Boston, MA 02111-1307 USA, or contact the author. *
22
* *
23
**********************************************************************/
24
25
// Implementation file for class GSLRootFinderAlgorithms
26
//
27
// Created by: moneta at Sun Nov 14 14:07:50 2004
28
//
29
// Last update: Sun Nov 14 14:07:50 2004
30
//
31
32
#include "
Math/RootFinderAlgorithms.h
"
33
#include "
GSLRootFSolver.h
"
34
#include "
GSLRootFdFSolver.h
"
35
36
#include "gsl/gsl_roots.h"
37
38
namespace
ROOT
{
39
namespace
Math
{
40
41
42
namespace
Roots {
43
44
45
46
Bisection::Bisection
()
47
{
48
// Bisection constructor
49
GSLRootFSolver
* s =
new
GSLRootFSolver
(
gsl_root_fsolver_bisection
);
50
SetSolver
(s);
51
}
52
53
Bisection::~Bisection
()
54
{
55
// destructor
56
FreeSolver
();
57
}
58
59
// falsepos method
60
61
FalsePos::FalsePos
()
62
{
63
// FalsePos constructor
64
GSLRootFSolver
* s =
new
GSLRootFSolver
(
gsl_root_fsolver_falsepos
);
65
SetSolver
(s);
66
}
67
68
FalsePos::~FalsePos
()
69
{
70
// destructor
71
FreeSolver
();
72
}
73
74
// Brent method
75
76
Brent::Brent
()
77
{
78
// Brent constructor
79
GSLRootFSolver
* s =
new
GSLRootFSolver
(
gsl_root_fsolver_brent
);
80
SetSolver
(s);
81
}
82
83
Brent::~Brent
()
84
{
85
// destructor
86
FreeSolver
();
87
}
88
89
90
//---------------------------------------------------------------------
91
// algorithms with Derivatives
92
//--------------------------------------------------------------------
93
94
// Newton
95
96
Newton::Newton
()
97
{
98
// Newton constructor
99
GSLRootFdFSolver
* s =
new
GSLRootFdFSolver
(
gsl_root_fdfsolver_newton
);
100
SetSolver
(s);
101
}
102
103
Newton::~Newton
()
104
{
105
// destructor
106
FreeSolver
();
107
}
108
109
// Secant
110
111
Secant::Secant
()
112
{
113
// Secant constructor
114
GSLRootFdFSolver
* s =
new
GSLRootFdFSolver
(
gsl_root_fdfsolver_secant
);
115
SetSolver
(s);
116
}
117
118
Secant::~Secant
()
119
{
120
// destructor
121
FreeSolver
();
122
}
123
124
// Steffenson
125
126
Steffenson::Steffenson
()
127
{
128
// Steffenson constructor
129
GSLRootFdFSolver
* s =
new
GSLRootFdFSolver
(
gsl_root_fdfsolver_steffenson
);
130
SetSolver
(s);
131
}
132
133
Steffenson::~Steffenson
()
134
{
135
// destructor
136
FreeSolver
();
137
}
138
139
140
}
// end namespace GSLRoots
141
142
}
// namespace Math
143
}
// namespace ROOT
GSLRootFSolver.h
GSLRootFdFSolver.h
RootFinderAlgorithms.h
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
ROOT::Math::GSLRootFSolver
Root-Finder implementation class using GSL.
Definition
GSLRootFSolver.h:47
ROOT::Math::GSLRootFdFSolver
Root-Finder with derivatives implementation class using GSL.
Definition
GSLRootFdFSolver.h:47
ROOT::Math::GSLRootFinderDeriv::SetSolver
void SetSolver(GSLRootFdFSolver *s)
Definition
GSLRootFinderDeriv.cxx:83
ROOT::Math::GSLRootFinderDeriv::FreeSolver
void FreeSolver()
Definition
GSLRootFinderDeriv.cxx:88
ROOT::Math::GSLRootFinder::SetSolver
void SetSolver(GSLRootFSolver *s)
Definition
GSLRootFinder.cxx:96
ROOT::Math::GSLRootFinder::FreeSolver
void FreeSolver()
Definition
GSLRootFinder.cxx:101
ROOT::Math::Roots::Bisection::Bisection
Bisection()
Definition
RootFinderAlgorithms.cxx:46
ROOT::Math::Roots::Bisection::~Bisection
~Bisection() override
Definition
RootFinderAlgorithms.cxx:53
ROOT::Math::Roots::Brent::Brent
Brent()
Definition
RootFinderAlgorithms.cxx:76
ROOT::Math::Roots::Brent::~Brent
~Brent() override
Definition
RootFinderAlgorithms.cxx:83
ROOT::Math::Roots::FalsePos::FalsePos
FalsePos()
Definition
RootFinderAlgorithms.cxx:61
ROOT::Math::Roots::FalsePos::~FalsePos
~FalsePos() override
Definition
RootFinderAlgorithms.cxx:68
ROOT::Math::Roots::Newton::~Newton
~Newton() override
Definition
RootFinderAlgorithms.cxx:103
ROOT::Math::Roots::Newton::Newton
Newton()
Definition
RootFinderAlgorithms.cxx:96
ROOT::Math::Roots::Secant::~Secant
~Secant() override
Definition
RootFinderAlgorithms.cxx:118
ROOT::Math::Roots::Secant::Secant
Secant()
Definition
RootFinderAlgorithms.cxx:111
ROOT::Math::Roots::Steffenson::~Steffenson
~Steffenson() override
Definition
RootFinderAlgorithms.cxx:133
ROOT::Math::Roots::Steffenson::Steffenson
Steffenson()
Definition
RootFinderAlgorithms.cxx:126
Math
Namespace for new Math classes and functions.
ROOT
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Definition
EExecutionPolicy.hxx:4
math
mathmore
src
RootFinderAlgorithms.cxx
ROOT master - Reference Guide Generated on Sun Feb 16 2025 04:44:12 (GVA Time) using Doxygen 1.10.0