firecrown.models.cluster.integrator.scipy_integrator

The SciPy integrator module.

This module holds the scipy implementation of the integrator classes

Classes

ScipyIntegrator

The scipy implementation of the Integrator base class using nquad.

Module Contents

class firecrown.models.cluster.integrator.scipy_integrator.ScipyIntegrator(relative_tolerance=0.0001, absolute_tolerance=1e-12)[source]

Bases: firecrown.models.cluster.integrator.integrator.Integrator

Inheritance diagram of firecrown.models.cluster.integrator.scipy_integrator.ScipyIntegrator

The scipy implementation of the Integrator base class using nquad.

Parameters:
  • relative_tolerance (float)

  • absolute_tolerance (float)

integrate(func_to_integrate)[source]

Integrate the provided integrand argument with SciPy.

Parameters:

func_to_integrate (Callable[[numpy.typing.NDArray[numpy.float64], numpy.typing.NDArray[numpy.float64]], numpy.typing.NDArray[numpy.float64]])

Return type:

float