crow.integrator.numcosmo_integrator module

The NumCosmo integrator module.

This module holds the NumCosmo implementation of the integrator classes

class crow.integrator.numcosmo_integrator.NumCosmoIntegralMethod(*values)[source]

Bases: Enum

The available NumCosmo integration methods.

H = <MagicMock name='mock.IntegralNDMethod.H' id='123141833555456'>
H_V = <MagicMock name='mock.IntegralNDMethod.H_V' id='123141829951568'>
P = <MagicMock name='mock.IntegralNDMethod.P' id='123141833554784'>
P_V = <MagicMock name='mock.IntegralNDMethod.P_V' id='123141833555120'>
class crow.integrator.numcosmo_integrator.NumCosmoIntegrator(method: None | NumCosmoIntegralMethod = None, relative_tolerance: float = 0.0001, absolute_tolerance: float = 1e-12)[source]

Bases: Integrator

The NumCosmo implementation of the Integrator base class.

integrate(func_to_integrate: Callable[[ndarray[tuple[Any, ...], dtype[float64]], ndarray[tuple[Any, ...], dtype[float64]]], ndarray[tuple[Any, ...], dtype[float64]]]) float[source]

Integrate the provided integrand argument with NumCosmo.