|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
|
Unit tests for GSL numerical integration routines. More...

Go to the source code of this file.
Classes | |
| class | GSLIntegrationTest |
Functions | |
| double | linear_func (double x, void *) |
| double | quadratic_func (double x, void *) |
| double | sin_func (double x, void *) |
| double | exp_func (double x, void *) |
| TEST_F (GSLIntegrationTest, LinearFunction) | |
| TEST_F (GSLIntegrationTest, QuadraticFunction) | |
| TEST_F (GSLIntegrationTest, SinFunction) | |
| TEST_F (GSLIntegrationTest, ExpFunction) | |
| TEST_F (GSLIntegrationTest, NegativeRange) | |
| TEST_F (GSLIntegrationTest, SmallRange) | |
Unit tests for GSL numerical integration routines.
This file contains unit tests for GSL-compatible numerical integration routines. The implementation uses adaptive Simpson's rule for computing definite integrals with specified error tolerances.
Definition in file TestGSLIntegration.cpp.
| double exp_func | ( | double | x, |
| void * | |||
| ) |
Definition at line 60 of file TestGSLIntegration.cpp.
Referenced by TEST_F().
| double linear_func | ( | double | x, |
| void * | |||
| ) |
Definition at line 51 of file TestGSLIntegration.cpp.
| double quadratic_func | ( | double | x, |
| void * | |||
| ) |
Definition at line 54 of file TestGSLIntegration.cpp.
| double sin_func | ( | double | x, |
| void * | |||
| ) |
Definition at line 57 of file TestGSLIntegration.cpp.
Referenced by TEST_F().
| TEST_F | ( | GSLIntegrationTest | , |
| ExpFunction | |||
| ) |
Definition at line 113 of file TestGSLIntegration.cpp.
References exp_func(), gsl_function::function, GSL_INTEG_GAUSS15, gsl_integration_qag(), gsl_integration_workspace_alloc(), gsl_integration_workspace_free(), and gsl_function::params.

| TEST_F | ( | GSLIntegrationTest | , |
| LinearFunction | |||
| ) |
Definition at line 62 of file TestGSLIntegration.cpp.
References gsl_function::function, GSL_INTEG_GAUSS15, gsl_integration_qag(), gsl_integration_workspace_alloc(), gsl_integration_workspace_free(), linear_func(), and gsl_function::params.

| TEST_F | ( | GSLIntegrationTest | , |
| NegativeRange | |||
| ) |
Definition at line 130 of file TestGSLIntegration.cpp.
References gsl_function::function, GSL_INTEG_GAUSS15, gsl_integration_qag(), gsl_integration_workspace_alloc(), gsl_integration_workspace_free(), linear_func(), and gsl_function::params.

| TEST_F | ( | GSLIntegrationTest | , |
| QuadraticFunction | |||
| ) |
Definition at line 79 of file TestGSLIntegration.cpp.
References gsl_function::function, GSL_INTEG_GAUSS15, gsl_integration_qag(), gsl_integration_workspace_alloc(), gsl_integration_workspace_free(), gsl_function::params, and quadratic_func().

| TEST_F | ( | GSLIntegrationTest | , |
| SinFunction | |||
| ) |
Definition at line 96 of file TestGSLIntegration.cpp.
References gsl_function::function, GSL_INTEG_GAUSS15, gsl_integration_qag(), gsl_integration_workspace_alloc(), gsl_integration_workspace_free(), gsl_function::params, and sin_func().

| TEST_F | ( | GSLIntegrationTest | , |
| SmallRange | |||
| ) |
Definition at line 147 of file TestGSLIntegration.cpp.
References gsl_function::function, GSL_INTEG_GAUSS15, gsl_integration_qag(), gsl_integration_workspace_alloc(), gsl_integration_workspace_free(), gsl_function::params, and quadratic_func().
