|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
|
#include <cmath>#include <limits>

Go to the source code of this file.
Namespaces | |
| namespace | gsl |
| GSL-compatible math constants. | |
Macros | |
| #define | GSL_REAL(z) ((z).dat[0]) |
| #define | GSL_IMAG(z) ((z).dat[1]) |
Typedefs | |
| typedef void(* | gsl_error_handler_t) (const char *reason, const char *file, int line, int gsl_errno) |
| Signature of a GSL-style error handler callback. | |
Functions | |
| gsl_error_handler_t | gsl_set_error_handler (gsl_error_handler_t handler) |
| Set a global error handler and return the previous handler. | |
| gsl_error_handler_t | gsl_set_error_handler_off () |
| Disable error handling and return a null handler. | |
| double | gsl_sf_erf (double x) |
| Error function \(\mathrm{erf}(x)\). | |
| double | gsl_sf_pow_int (double x, int n) |
| Integer power \(x^n\). | |
| double | gsl_sf_gamma (double x) |
| Gamma function \(\Gamma(x)\). | |
| double | gsl_sf_fact (unsigned int n) |
| Factorial \(n!\) (computed via \(\Gamma(n+1)\) for large \(n\)). | |
| double | gsl_sf_choose (unsigned int n, unsigned int m) |
| Binomial coefficient \(\binom{n}{m}\). | |
| double | gsl_hypot (double x, double y) |
| Hypotenuse \(\sqrt{x^2 + y^2}\) with overflow-safe std::hypot. | |
Variables | |
| constexpr double | gsl::GSL_POSINF = std::numeric_limits<double>::infinity() |
| constexpr double | gsl::GSL_NEGINF = -std::numeric_limits<double>::infinity() |
| constexpr double | gsl::GSL_NAN = std::numeric_limits<double>::quiet_NaN() |
| #define GSL_IMAG | ( | z | ) | ((z).dat[1]) |
Definition at line 118 of file GSLCompat.h.
| #define GSL_REAL | ( | z | ) | ((z).dat[0]) |
Definition at line 117 of file GSLCompat.h.
| typedef void(* gsl_error_handler_t) (const char *reason, const char *file, int line, int gsl_errno) |
Signature of a GSL-style error handler callback.
Definition at line 27 of file GSLCompat.h.
|
inline |
Hypotenuse \(\sqrt{x^2 + y^2}\) with overflow-safe std::hypot.
| x | Input: first leg. |
| y | Input: second leg. |
Definition at line 114 of file GSLCompat.h.
Referenced by TEST_F().
|
inline |
Set a global error handler and return the previous handler.
| handler | Input: new error handler. |
Definition at line 32 of file GSLCompat.h.
|
inline |
Disable error handling and return a null handler.
Definition at line 42 of file GSLCompat.h.
Referenced by TEST_F().
|
inline |
Binomial coefficient \(\binom{n}{m}\).
| n | Input: total count. |
| m | Input: selected count. |
Definition at line 87 of file GSLCompat.h.
|
inline |
Error function \(\mathrm{erf}(x)\).
| x | Input: argument. |
Definition at line 50 of file GSLCompat.h.
Referenced by TEST_F().
|
inline |
Factorial \(n!\) (computed via \(\Gamma(n+1)\) for large \(n\)).
| n | Input: non-negative integer. |
Definition at line 69 of file GSLCompat.h.
Referenced by interpolation::SquarePolynomialVector::Deriv(), interpolation::PPSolveFactory::getDerivPoints(), endfieldmodel::Enge::hN(), TEST_F(), and TEST_F().
|
inline |
Gamma function \(\Gamma(x)\).
| x | Input: argument. |
Definition at line 63 of file GSLCompat.h.
Referenced by TEST_F().
|
inline |
Integer power \(x^n\).
| x | Input: base. |
| n | Input: integer exponent. |
Definition at line 57 of file GSLCompat.h.
Referenced by interpolation::PPSolveFactory::getDerivPoints(), endfieldmodel::Enge::getEnge(), endfieldmodel::Tanh::getNegTanh(), endfieldmodel::Tanh::getTanh(), endfieldmodel::Enge::gN(), endfieldmodel::Enge::hN(), interpolation::SolveFactory::MakeSquareDerivVector(), interpolation::SolveFactory::MakeSquareVector(), and TEST_F().