antioch-0.4.0
gsl_spliner_shim.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // Antioch - A Gas Dynamics Thermochemistry Library
5 //
6 // Copyright (C) 2014-2016 Paul T. Bauman, Benjamin S. Kirk,
7 // Sylvain Plessis, Roy H. Stonger
8 //
9 // Copyright (C) 2013 The PECOS Development Team
10 //
11 // This library is free software; you can redistribute it and/or
12 // modify it under the terms of the Version 2.1 GNU Lesser General
13 // Public License as published by the Free Software Foundation.
14 //
15 // This library is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 // Lesser General Public License for more details.
19 //
20 // You should have received a copy of the GNU Lesser General Public
21 // License along with this library; if not, write to the Free Software
22 // Foundation, Inc. 51 Franklin Street, Fifth Floor,
23 // Boston, MA 02110-1301 USA
24 //
25 //-----------------------------------------------------------------------el-
26 
27 #include "antioch_config.h" //only of we have GSL
28 
29 #ifdef ANTIOCH_HAVE_GSL
30 
31 #ifndef ANTIOCH_GSL_SPLINER_SHIM_H
32 #define ANTIOCH_GSL_SPLINER_SHIM_H
33 
34 namespace Antioch
35 {
37  namespace AntiochPrivate
38  {
39  // Forward declaration
40  class GSLSplinerImplementation;
41 
43 
51  class GSLSplinerShim
52  {
53  public:
54 
56 
59  GSLSplinerShim();
60 
62  ~GSLSplinerShim();
63 
65  void spline_init( const double* x, const double* y, unsigned int size );
66 
68  void spline_clear();
69 
71  double eval(double x) const;
72 
74  double eval_deriv(double x) const;
75 
76  private:
77 
79  GSLSplinerImplementation* _impl;
80  };
81 
82  } // end namespace AntiochPrivate
83 } // end namespace Antioch
84 
85 #endif // ANTIOCH_GSL_SPLINER_SHIM_H
86 
87 #endif// if ANTIOCH_HAVE_GSL
The parameters are reduced parameters.

Generated on Thu Jul 7 2016 11:09:46 for antioch-0.4.0 by  doxygen 1.8.8