firecrown.models.cluster.integrator.scipy_integrator.ScipyIntegrator

firecrown.models.cluster.integrator.scipy_integrator.ScipyIntegrator#

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

Bases: Integrator

The scipy implementation of the Integrator base class using nquad.

Parameters:
  • relative_tolerance (float) –

  • absolute_tolerance (float) –

Public Methods:

__init__([relative_tolerance, ...])

param relative_tolerance:

integrate(func_to_integrate)

Integrate the provided integrand argument with SciPy.

Inherited from Integrator

__init__()

integrate(func_to_integrate)

Call this method to integrate the provided integrand argument.


integrate(func_to_integrate)[source]#

Integrate the provided integrand argument with SciPy.

Parameters:

func_to_integrate (Callable[[ndarray[Any, dtype[float64]], ndarray[Any, dtype[float64]]], ndarray[Any, dtype[float64]]]) –

Return type:

float