Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
37namespace ROOT {
38namespace Math {
39
40 /**
41 wrapper class for C struct gsl_cheb_series
42 */
43
45
46public:
48 {
49 m_cs = gsl_cheb_alloc(n);
50 }
51
52 virtual ~GSLChebSeries() {
53 gsl_cheb_free(m_cs);
54 }
55
56private:
57// usually copying is non trivial, so we make this unaccessible
58 GSLChebSeries(const GSLChebSeries &) = delete;
60
61public:
62
63 gsl_cheb_series * get() const { return m_cs; }
64
65private:
66
67 gsl_cheb_series * m_cs;
68
69};
70
71
72} // namespace Math
73} // namespace ROOT
74
75
76#endif /* ROOT_Math_GSLChebSeries */
wrapper class for C struct gsl_cheb_series
GSLChebSeries & operator=(const GSLChebSeries &)=delete
GSLChebSeries(const GSLChebSeries &)=delete
gsl_cheb_series * m_cs
gsl_cheb_series * get() const
const Int_t n
Definition legend1.C:16
Namespace for new Math classes and functions.
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.