Logo ROOT   6.13/01
Reference Guide
GSLRootFdFSolver.h
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 // Header file for class GSLRootFdFSolver
26 //
27 // Created by: moneta at Sun Nov 14 17:23:06 2004
28 //
29 // Last update: Sun Nov 14 17:23:06 2004
30 //
31 #ifndef ROOT_Math_GSLRootFdFSolver
32 #define ROOT_Math_GSLRootFdFSolver
33 
34 
35 #include "gsl/gsl_roots.h"
36 
37 
38 namespace ROOT {
39 namespace Math {
40 
41 
42 /**
43  Root-Finder with derivatives implementation class using GSL
44 
45  @ingroup RootFinders
46  */
48 
49 public:
50 
51  GSLRootFdFSolver(const gsl_root_fdfsolver_type * type) {
52  fSolver = gsl_root_fdfsolver_alloc( type);
53  }
54  virtual ~GSLRootFdFSolver() {
55  gsl_root_fdfsolver_free( fSolver);
56  }
57 
58 /* private: */
59 /* // usually copying is non trivial, so we make this unaccessible */
60 /* GSLRootFdFSolver(const GSLRootFdFSolver &); */
61 /* GSLRootFdFSolver & operator = (const GSLRootFdFSolver &); */
62 
63 /* public: */
64 
65  gsl_root_fdfsolver * Solver() const { return fSolver; }
66 
67 
68 protected:
69 
70 
71 private:
72 
73  gsl_root_fdfsolver *fSolver;
74 
75 
76 };
77 
78 } // namespace Math
79 } // namespace ROOT
80 
81 
82 #endif /* ROOT_Math_GSLRootFdFSolver */
gsl_root_fdfsolver * fSolver
Namespace for new ROOT classes and functions.
Definition: TFoamSampler.h:19
GSLRootFdFSolver(const gsl_root_fdfsolver_type *type)
gsl_root_fdfsolver * Solver() const
Root-Finder with derivatives implementation class using GSL.
Namespace for new Math classes and functions.