firecrown.utils.cached_angular_cl

firecrown.utils.cached_angular_cl#

firecrown.utils.cached_angular_cl(cosmo, tracers, ells, p_of_k_a=typing.Optional[typing.Callable[[numpy.ndarray[tuple[int, ...], numpy.dtype[numpy.int64]]], numpy.ndarray[tuple[int, ...], numpy.dtype[numpy.float64]]]])[source]#

Wrapper for pyccl.angular_cl, with automatic caching.

Parameters:
  • cosmo (Cosmology) – the current cosmology

  • tracers (tuple[Tracer, Tracer]) – tracers indicating the measurements to be correlated

  • ells (ndarray[tuple[int, ...], dtype[int64]]) – ell values at which to calculate the power spectrum

  • p_of_k_a – function that computes the power spectrum