|
Epstein Zeta Library 0.5.1
Calculates the Epstein Zeta function
|
Benchmarking of the Epstein zeta function. More...
#include "../tools.h"#include "epsteinZeta.h"#include "utils.h"#include <complex.h>#include <errno.h>#include <math.h>#include <stdio.h>#include <stdlib.h>
Macros | |
| #define | MAX_PATH_LENGTH 1024 |
| #define | BASE_PATH "csv" |
Functions | |
| double | sHat (double nu, unsigned int dim, double *y) |
| Calculates the singularity of the Epstein zeta function as y approaches zero. | |
| void | freeTestResources (double *a, double *nu, double *x, double *y, double *zetaRef) |
| Free memory allocated for test resources. | |
| void | reportEpsteinZetaError (double complex valZeta, double complex valZetaReg, double errorMaxAbsRel, double tol, double *m, unsigned int dim, double nu, double *x, double *y) |
| Reports an error when the Epstein zeta function representation test fails. | |
| void | reportEpsteinZetaCutoffError (const char *testCase, double complex zeta1, double complex zeta2, double nu, double *y, unsigned int dim) |
| Reports an error when the Epstein zeta function cutoff test fails. | |
| int | test_epsteinZeta_random_matrices (void) |
| Tests Epstein zeta function for random matrices in multiple dimensions by comparing against Mathematica reference values. | |
| int | test_epsteinZetaReg_random_matrices (void) |
| Tests Epstein zeta function for random matrices in multiple dimensions by comparing against Mathematica reference values. | |
| int | main () |
| Main function to run all Epstein zeta function tests. | |
Benchmarking of the Epstein zeta function.
| void freeTestResources | ( | double * | a, |
| double * | nu, | ||
| double * | x, | ||
| double * | y, | ||
| double * | zetaRef ) |
Free memory allocated for test resources.
This function deallocates memory that was dynamically allocated for various arrays used in the Epstein zeta function tests.
| [in] | a | Pointer to the matrix of coefficients. |
| [in] | nu | Pointer to the array of nu values. |
| [in] | x | Pointer to the array of x values. |
| [in] | y | Pointer to the array of y values. |
| [in] | zetaRef | Pointer to the array of reference zeta values. |
| int main | ( | void | ) |
Main function to run all Epstein zeta function tests.
| void reportEpsteinZetaCutoffError | ( | const char * | testCase, |
| double complex | zeta1, | ||
| double complex | zeta2, | ||
| double | nu, | ||
| double * | y, | ||
| unsigned int | dim ) |
Reports an error when the Epstein zeta function cutoff test fails.
| [in] | testCase | A string describing the specific test case that failed. |
| [in] | zeta1 | The first computed value of the Epstein zeta function. |
| [in] | zeta2 | The second computed value of the Epstein zeta function for comparison. |
| [in] | nu | The parameter nu of the Epstein zeta function. |
| [in] | y | Pointer to the array of y values. |
| [in] | dim | The dimension of the lattice. |
| void reportEpsteinZetaError | ( | double complex | valZeta, |
| double complex | valZetaReg, | ||
| double | errorMaxAbsRel, | ||
| double | tol, | ||
| double * | m, | ||
| unsigned int | dim, | ||
| double | nu, | ||
| double * | x, | ||
| double * | y ) |
Reports an error when the Epstein zeta function representation test fails.
This function prints detailed information about the test case that failed, including the computed values, error margins, and input parameters.
| [in] | valZeta | The value computed by epsteinZeta. |
| [in] | valZetaReg | The value computed by the epsteinZetaReg representation. |
| [in] | errorMaxAbsRel | The maximum of absolute and relative errors. |
| [in] | tol | The tolerance level for the test. |
| [in] | m | Pointer to the matrix of coefficients. |
| [in] | dim | The dimension of the lattice. |
| [in] | nu | The parameter nu of the Epstein zeta function. |
| [in] | x | Pointer to the array of x values. |
| [in] | y | Pointer to the array of y values. |
| double sHat | ( | double | nu, |
| unsigned int | dim, | ||
| double * | y ) |
Calculates the singularity of the Epstein zeta function as y approaches zero.
| [in] | nu | The parameter nu of the Epstein zeta function. |
| [in] | dim | The dimension of the lattice. |
| [in] | y | Pointer to the array of y values. |
| int test_epsteinZeta_random_matrices | ( | void | ) |
Tests Epstein zeta function for random matrices in multiple dimensions by comparing against Mathematica reference values.
| int test_epsteinZetaReg_random_matrices | ( | void | ) |
Tests Epstein zeta function for random matrices in multiple dimensions by comparing against Mathematica reference values.