|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
|
Unit tests for GSL special functions compatibility. More...

Go to the source code of this file.
Classes | |
| class | GSLCompatTest |
Functions | |
| TEST_F (GSLCompatTest, ErfFunction) | |
| TEST_F (GSLCompatTest, PowInt) | |
| TEST_F (GSLCompatTest, GammaFunction) | |
| TEST_F (GSLCompatTest, Factorial) | |
| TEST_F (GSLCompatTest, FactorialLarge) | |
| TEST_F (GSLCompatTest, BinomialCoefficient) | |
| TEST_F (GSLCompatTest, BinomialCoefficientEdgeCases) | |
| TEST_F (GSLCompatTest, Hypot) | |
| TEST_F (GSLCompatTest, ErrorHandler) | |
Unit tests for GSL special functions compatibility.
This file contains unit tests for GSL-compatible special function wrappers. These functions provide compatibility with GSL's special function API while using C++ standard library implementations where possible.
gsl_sf_erf() matches std::erf() for various input values, including zero, positive, negative, and large values approaching the asymptotic limit of 1.gsl_sf_gamma() matches std::tgamma() for integer values (factorial property: \(\Gamma(n+1) = n!\)) and half-integer values ( \(\Gamma(1/2) = \sqrt{\pi}\)).Definition in file TestGSLCompat.cpp.
| TEST_F | ( | GSLCompatTest | , |
| BinomialCoefficient | |||
| ) |
Definition at line 113 of file TestGSLCompat.cpp.
References gsl_sf_choose().

| TEST_F | ( | GSLCompatTest | , |
| BinomialCoefficientEdgeCases | |||
| ) |
Definition at line 125 of file TestGSLCompat.cpp.
References gsl_sf_choose().

| TEST_F | ( | GSLCompatTest | , |
| ErfFunction | |||
| ) |
Definition at line 66 of file TestGSLCompat.cpp.
References gsl_sf_erf().

| TEST_F | ( | GSLCompatTest | , |
| ErrorHandler | |||
| ) |
Definition at line 140 of file TestGSLCompat.cpp.
References gsl_set_error_handler(), and gsl_set_error_handler_off().

| TEST_F | ( | GSLCompatTest | , |
| Factorial | |||
| ) |
Definition at line 96 of file TestGSLCompat.cpp.
References gsl_sf_fact().

| TEST_F | ( | GSLCompatTest | , |
| FactorialLarge | |||
| ) |
Definition at line 106 of file TestGSLCompat.cpp.
References gsl_sf_fact().

| TEST_F | ( | GSLCompatTest | , |
| GammaFunction | |||
| ) |
Definition at line 88 of file TestGSLCompat.cpp.
References gsl_sf_gamma().

| TEST_F | ( | GSLCompatTest | , |
| Hypot | |||
| ) |
Definition at line 132 of file TestGSLCompat.cpp.
References gsl_hypot().

| TEST_F | ( | GSLCompatTest | , |
| PowInt | |||
| ) |
Definition at line 76 of file TestGSLCompat.cpp.
References gsl_sf_pow_int().
