ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
sf_gegenbauer.hpp
Go to the documentation of this file.
1/*
2 * $Id: sf_gegenbauer.hpp 9 2010-06-13 14:02:43Z jdl3 $
3 * Copyright (C) 2010, 2020 John D Lamb
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20#ifndef CCGSL_SF_GEGENBAUER_HPP
21#define CCGSL_SF_GEGENBAUER_HPP
22
23#include<gsl/gsl_sf_gegenbauer.h>
24#include"mode.hpp"
25#include"sf_result.hpp"
26
27namespace gsl {
28 namespace sf {
36 inline int gegenpoly_1_e( double lambda, double x, result& result ){
37 return gsl_sf_gegenpoly_1_e( lambda, x, &result ); }
45 inline int gegenpoly_2_e( double lambda, double x, result& result ){
46 return gsl_sf_gegenpoly_2_e( lambda, x, &result ); }
54 inline int gegenpoly_3_e( double lambda, double x, result& result ){
55 return gsl_sf_gegenpoly_3_e( lambda, x, &result ); }
62 inline double gegenpoly_1( double lambda, double x ){
63 return gsl_sf_gegenpoly_1( lambda, x ); }
70 inline double gegenpoly_2( double lambda, double x ){
71 return gsl_sf_gegenpoly_2( lambda, x ); }
78 inline double gegenpoly_3( double lambda, double x ){
79 return gsl_sf_gegenpoly_3( lambda, x ); }
88 inline int gegenpoly_n_e( int n, double lambda, double x, result& result ){
89 return gsl_sf_gegenpoly_n_e( n, lambda, x, &result ); }
97 inline double gegenpoly_n( int n, double lambda, double x ){
98 return gsl_sf_gegenpoly_n( n, lambda, x ); }
99#ifndef DOXYGEN_SKIP
108 inline int gegenpoly_array( int nmax, double lambda, double x, double* result_array ){
109 return gsl_sf_gegenpoly_array( nmax, lambda, x, result_array );
110 }
111#endif // DOXYGEN_SKIP
120 template<typename DATA>
121 inline int gegenpoly_array( int nmax, double lambda, double x, DATA& result_array ){
122 if(result_array.size() < static_cast<size_t>(nmax + 1)){ return GSL_EBADLEN;}
123 return gsl_sf_gegenpoly_array( nmax, lambda, x, result_array.data() );
124 }
125 }
126}
127
128#endif
size_t n(workspace const &w)
C++ version of gsl_rstat_n().
Definition: rstat.hpp:299
int gegenpoly_2_e(double lambda, double x, result &result)
C++ version of gsl_sf_gegenpoly_2_e().
double gegenpoly_1(double lambda, double x)
C++ version of gsl_sf_gegenpoly_1().
int gegenpoly_1_e(double lambda, double x, result &result)
C++ version of gsl_sf_gegenpoly_1_e().
double gegenpoly_3(double lambda, double x)
C++ version of gsl_sf_gegenpoly_3().
double gegenpoly_n(int n, double lambda, double x)
C++ version of gsl_sf_gegenpoly_n().
int gegenpoly_n_e(int n, double lambda, double x, result &result)
C++ version of gsl_sf_gegenpoly_n_e().
int gegenpoly_3_e(double lambda, double x, result &result)
C++ version of gsl_sf_gegenpoly_3_e().
int gegenpoly_array(int nmax, double lambda, double x, DATA &result_array)
C++ version of gsl_sf_gegenpoly_array().
gsl_sf_result result
Typedef for gsl_sf_result.
Definition: sf_result.hpp:30
double gegenpoly_2(double lambda, double x)
C++ version of gsl_sf_gegenpoly_2().
The gsl package creates an interface to the GNU Scientific Library for C++.
Definition: blas.hpp:34