Logo ROOT  
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
33#include "GSLRootFSolver.h"
34#include "GSLRootFdFSolver.h"
35
36#include "gsl/gsl_roots.h"
37
38namespace ROOT {
39namespace Math {
40
41
42namespace Roots {
43
44
45
47{
48 // Bisection constructor
50 SetSolver(s);
51}
52
54{
55 // destructor
56 FreeSolver();
57}
58
59// falsepos method
60
62{
63 // FalsePos constructor
65 SetSolver(s);
66}
67
69{
70 // destructor
71 FreeSolver();
72}
73
74// Brent method
75
77{
78 // Brent constructor
80 SetSolver(s);
81}
82
84{
85 // destructor
86 FreeSolver();
87}
88
89
90//---------------------------------------------------------------------
91// algorithms with Derivatives
92//--------------------------------------------------------------------
93
94// Newton
95
97{
98 // Newton constructor
100 SetSolver(s);
101}
102
104{
105 // destructor
106 FreeSolver();
107}
108
109// Secant
110
112{
113 // Secant constructor
115 SetSolver(s);
116}
117
119{
120 // destructor
121 FreeSolver();
122}
123
124// Steffenson
125
127{
128 // Steffenson constructor
130 SetSolver(s);
131}
132
134{
135 // destructor
136 FreeSolver();
137}
138
139
140} // end namespace GSLRoots
141
142} // namespace Math
143} // namespace ROOT
Root-Finder implementation class using GSL.
Root-Finder with derivatives implementation class using GSL.
void SetSolver(GSLRootFdFSolver *s)
void SetSolver(GSLRootFSolver *s)
Namespace for new Math classes and functions.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...