ROOT  6.06/09
Reference Guide
GSLChebSeries.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 GSLChebSeries
26 //
27 // Created by: moneta at Thu Dec 2 16:50:07 2004
28 //
29 // Last update: Thu Dec 2 16:50:07 2004
30 //
31 #ifndef ROOT_Math_GSLChebSeries
32 #define ROOT_Math_GSLChebSeries
33 
34 #include "gsl/gsl_chebyshev.h"
35 
36 
37 namespace ROOT {
38 namespace Math {
39 
40  /**
41  wrapper class for C struct gsl_cheb_series
42  */
43 
45 
46 public:
47  GSLChebSeries(size_t n)
48  {
49  m_cs = gsl_cheb_alloc(n);
50  }
51 
52  virtual ~GSLChebSeries() {
53  gsl_cheb_free(m_cs);
54  }
55 
56 private:
57 // usually copying is non trivial, so we make this unaccessible
60 
61 public:
62 
63  gsl_cheb_series * get() const { return m_cs; }
64 
65 private:
66 
67  gsl_cheb_series * m_cs;
68 
69 };
70 
71 
72 } // namespace Math
73 } // namespace ROOT
74 
75 
76 #endif /* ROOT_Math_GSLChebSeries */
Namespace for new ROOT classes and functions.
Definition: ROOT.py:1
wrapper class for C struct gsl_cheb_series
Definition: GSLChebSeries.h:44
gsl_cheb_series * m_cs
Definition: GSLChebSeries.h:67
Namespace for new Math classes and functions.
const Int_t n
Definition: legend1.C:16
GSLChebSeries & operator=(const GSLChebSeries &)