|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
|
Unit tests for CubicSpline interpolation (replacement for gsl_spline) More...
#include <gtest/gtest.h>#include <cmath>#include <vector>#include "Utilities/CubicSpline.h"#include "Utilities/GSLSpline.h"
Go to the source code of this file.
Classes | |
| class | CubicSplineTest |
Functions | |
| TEST_F (CubicSplineTest, BasicInterpolation) | |
| TEST_F (CubicSplineTest, Uninitialised) | |
| TEST_F (CubicSplineTest, Extrapolation) | |
| TEST_F (CubicSplineTest, Accelerator) | |
| TEST_F (CubicSplineTest, SinFunction) | |
| TEST_F (CubicSplineTest, InvalidInput) | |
| TEST_F (CubicSplineTest, Integration) | |
| TEST_F (CubicSplineTest, GSLCompatibleInterface) | |
Unit tests for CubicSpline interpolation (replacement for gsl_spline)
This file contains comprehensive unit tests for the CubicSpline class, which implements cubic spline interpolation using natural boundary conditions. The implementation provides both a direct C++ interface and GSL-compatible wrapper functions.
Definition in file TestCubicSpline.cpp.
| TEST_F | ( | CubicSplineTest | , |
| Accelerator | |||
| ) |
Definition at line 97 of file TestCubicSpline.cpp.
References CubicSpline::eval().

| TEST_F | ( | CubicSplineTest | , |
| BasicInterpolation | |||
| ) |
Definition at line 60 of file TestCubicSpline.cpp.
References CubicSpline::eval().

| TEST_F | ( | CubicSplineTest | , |
| Extrapolation | |||
| ) |
Definition at line 84 of file TestCubicSpline.cpp.
References CubicSpline::eval().

| TEST_F | ( | CubicSplineTest | , |
| GSLCompatibleInterface | |||
| ) |
Definition at line 182 of file TestCubicSpline.cpp.
References gsl_interp_accel_alloc(), gsl_interp_accel_free(), gsl_interp_accel_reset(), gsl_interp_cspline, gsl_spline_alloc(), gsl_spline_eval(), gsl_spline_eval_integ(), gsl_spline_free(), and gsl_spline_init().

| TEST_F | ( | CubicSplineTest | , |
| Integration | |||
| ) |
Definition at line 145 of file TestCubicSpline.cpp.
References CubicSpline::evalIntegral(), and CubicSpline::init().

| TEST_F | ( | CubicSplineTest | , |
| InvalidInput | |||
| ) |
Definition at line 133 of file TestCubicSpline.cpp.
| TEST_F | ( | CubicSplineTest | , |
| SinFunction | |||
| ) |
Definition at line 116 of file TestCubicSpline.cpp.
References CubicSpline::eval().

| TEST_F | ( | CubicSplineTest | , |
| Uninitialised | |||
| ) |
Definition at line 77 of file TestCubicSpline.cpp.
References CubicSpline::eval().
