Epstein Zeta Library 0.5.0
Calculates the Epstein Zeta function
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
test_epsteinlib.TestEpsteinZeta Class Reference
Inheritance diagram for test_epsteinlib.TestEpsteinZeta:
Inheritance graph
[legend]
Collaboration diagram for test_epsteinlib.TestEpsteinZeta:
Collaboration graph
[legend]

Public Member Functions

None compare_epstein_zeta_with_ref (self, NDArray[np.float64] a, NDArray[np.float64] x, NDArray[np.float64] y, Callable[[float], float] epstein_zeta_ref_func)
 
None test_epstein_zeta_00_mhalfmhalf_id (self)
 
None test_epstein_zeta_m1m1_halfhalf_id (self)
 
None test_epstein_zeta_m1m1_half0_id (self)
 
None epstein_zeta_onehalf0sqrt3half_00_00 (self)
 
None test_epstein_zeta_diag2sqrt242_0m1m1_4sqrt2th00 (self)
 
None test_epstein_zeta_half000_0000_id (self)
 
None test_singularity (self)
 
None test_no_singularity_in_reg (self)
 

Public Attributes

 threshold
 

Static Public Attributes

tuple offset
 
float stepsize = 0.1
 
NDArray nu_values
 
float threshold = 2 * 10 ** (-13)
 

Detailed Description

Unit test class for testing the Epstein Zeta function
by comparison to analytic representations in special cases.

Member Function Documentation

◆ compare_epstein_zeta_with_ref()

None test_epsteinlib.TestEpsteinZeta.compare_epstein_zeta_with_ref ( self,
NDArray[np.float64] a,
NDArray[np.float64] x,
NDArray[np.float64] y,
Callable[[float], float] epstein_zeta_ref_func )
Test the Epstein Zeta function and the regularized Epstein Zeta
function for a range of nu values by comparing with a reference
function.

Raises:
    AssertionError: If the error between the computed and Reference
    values exceeds the threshold.

◆ epstein_zeta_onehalf0sqrt3half_00_00()

None test_epsteinlib.TestEpsteinZeta.epstein_zeta_onehalf0sqrt3half_00_00 ( self)
Test the Epstein Zeta function for the case where
x=[1/2,0,0,0], y=[0,0,0,0], and a= [[1, 1/2], [0, sqrt(3)/2]].

◆ test_epstein_zeta_00_mhalfmhalf_id()

None test_epsteinlib.TestEpsteinZeta.test_epstein_zeta_00_mhalfmhalf_id ( self)
Test the Epstein Zeta function for the case where
x=[0,0], y=[-1/2,-1/2], and a is the identity matrix.

◆ test_epstein_zeta_diag2sqrt242_0m1m1_4sqrt2th00()

None test_epsteinlib.TestEpsteinZeta.test_epstein_zeta_diag2sqrt242_0m1m1_4sqrt2th00 ( self)
Test the Epstein Zeta function for the case where
x=[0,-1,-1], y=[1/4*sqrt(2),0,0], and a=diag(2*sqrt(2),4,2).

◆ test_epstein_zeta_half000_0000_id()

None test_epsteinlib.TestEpsteinZeta.test_epstein_zeta_half000_0000_id ( self)
Test the Epstein Zeta function for the case where
x=[1/2,0,0,0], y=[0,0,0,0], and a is the identity matrix.

◆ test_epstein_zeta_m1m1_half0_id()

None test_epsteinlib.TestEpsteinZeta.test_epstein_zeta_m1m1_half0_id ( self)
Test the Epstein Zeta function for the case where
x=[-1,-1], y=[1/2,0], and a is the identity matrix.

◆ test_epstein_zeta_m1m1_halfhalf_id()

None test_epsteinlib.TestEpsteinZeta.test_epstein_zeta_m1m1_halfhalf_id ( self)
Test the Epstein Zeta function for the case where
x=[-1,-1], y=[1/2,1/2], and a is the identity matrix.

◆ test_no_singularity_in_reg()

None test_epsteinlib.TestEpsteinZeta.test_no_singularity_in_reg ( self)
Test if the Epstein Zeta function returns nan for singularity case.

◆ test_singularity()

None test_epsteinlib.TestEpsteinZeta.test_singularity ( self)
Test if the Epstein Zeta function returns nan for singularity case.

Member Data Documentation

◆ nu_values

NDArray test_epsteinlib.TestEpsteinZeta.nu_values
static
Initial value:
= np.concatenate(
[
np.arange(-9 + offset, -8 + offset, stepsize),
np.arange(-1 + offset, 4 + offset, stepsize),
]
)

◆ offset

tuple test_epsteinlib.TestEpsteinZeta.offset
static
Initial value:
= (
0.01 # problems for python values with 0ffset <= 0.001, no problems with matheamtica values
)

The documentation for this class was generated from the following file: