ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
sys.hpp
Go to the documentation of this file.
1/*
2 * $Id: sys.hpp 67 2012-01-08 15:36:19Z jdl3 $
3 * Copyright (C) 2012 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_SYS_HPP
21#define CCGSL_SYS_HPP
22
23#include<gsl/gsl_sys.h>
24
25namespace gsl {
31 inline double log1p( double const x ){ return gsl_log1p( x ); }
32
38 inline double expm1( double const x ){ return gsl_expm1( x ); }
39
46 inline double hypot( double const x, double const y ){ return gsl_hypot( x, y ); }
47
55 inline double hypot3( double const x, double const y, double const z ){ return gsl_hypot3( x, y, z ); }
56
62 inline double acosh( double const x ){ return gsl_acosh( x ); }
63
69 inline double asinh( double const x ){ return gsl_asinh( x ); }
70
76 inline double atanh( double const x ){ return gsl_atanh( x ); }
77
83 inline int is_nan( double const x ){ return gsl_isnan( x ); }
84
90 inline int is_inf( double const x ){ return gsl_isinf( x ); }
91
97 inline int finite( double const x ){ return gsl_finite( x ); }
98
103 inline double nan(){ return gsl_nan(); }
104
109 inline double posinf(){ return gsl_posinf(); }
110
115 inline double neginf(){ return gsl_neginf(); }
116
123 inline double fdiv( double const x, double const y ){ return gsl_fdiv( x, y ); }
124
130 inline double coerce_double( double const x ){ return gsl_coerce_double( x ); }
131
137 inline float coerce_float( float const x ){ return gsl_coerce_float( x ); }
138
144 inline long double coerce_long_double( long double const x ){ return gsl_coerce_long_double( x ); }
145
152 inline double ldexp( double const x, int const e ){ return gsl_ldexp( x, e ); }
153
160 inline double frexp( double const x, int* e ){ return gsl_frexp( x, e ); }
167 inline double frexp( double const x, int& e ){ return gsl_frexp( x, &e ); }
168
177 inline int fcmp( double const x1, double const x2, double const epsilon ){
178 return gsl_fcmp( x1, x2, epsilon ); }
179}
180#endif
The gsl package creates an interface to the GNU Scientific Library for C++.
Definition: blas.hpp:34
double hypot3(double const x, double const y, double const z)
C++ version of gsl_hypot3().
Definition: sys.hpp:55
double log1p(double const x)
C++ version of gsl_log1p().
Definition: sys.hpp:31
int finite(double const x)
C++ version of gsl_finite().
Definition: sys.hpp:97
float coerce_float(float const x)
C++ version of gsl_coerce_float().
Definition: sys.hpp:137
int fcmp(double const x1, double const x2, double const epsilon)
C++ version of gsl_fcmp().
Definition: sys.hpp:177
int is_nan(double const x)
C++ version of gsl_isnan().
Definition: sys.hpp:83
double fdiv(double const x, double const y)
C++ version of gsl_fdiv().
Definition: sys.hpp:123
int is_inf(double const x)
C++ version of gsl_isinf().
Definition: sys.hpp:90
long double coerce_long_double(long double const x)
C++ version of gsl_coerce_long_double().
Definition: sys.hpp:144
double asinh(double const x)
C++ version of gsl_asinh().
Definition: sys.hpp:69
double expm1(double const x)
C++ version of gsl_expm1().
Definition: sys.hpp:38
double posinf()
C++ version of gsl_posinf().
Definition: sys.hpp:109
double neginf()
C++ version of gsl_neginf().
Definition: sys.hpp:115
double ldexp(double const x, int const e)
C++ version of gsl_ldexp().
Definition: sys.hpp:152
double nan()
C++ version of gsl_nan().
Definition: sys.hpp:103
double atanh(double const x)
C++ version of gsl_atanh().
Definition: sys.hpp:76
double hypot(double const x, double const y)
C++ version of gsl_hypot().
Definition: sys.hpp:46
double coerce_double(double const x)
C++ version of gsl_coerce_double().
Definition: sys.hpp:130
double frexp(double const x, int *e)
C++ version of gsl_frexp().
Definition: sys.hpp:160
double acosh(double const x)
C++ version of gsl_acosh().
Definition: sys.hpp:62