Class

NumCosmoMathSBesselIntegrator

Description [src]

abstract class NumCosmoMath.SBesselIntegrator : GObject.Object
{
  /* No available fields */
}

Base class for spherical Bessel function integrators.

This class provides a framework for integrating functions multiplied by spherical Bessel functions $j_\ell(x)$.

Ancestors

Functions

ncm_sbessel_integrator_clear

If sbi is different from NULL, decreases the reference count of sbi by one and sets sbi to NULL.

Instance methods

ncm_sbessel_integrator_free

Decreases the reference count of sbi by one.

ncm_sbessel_integrator_get_ell_range

Gets the multipole range.

ncm_sbessel_integrator_integrate

Integrates the function F(x, k) multiplied by the spherical Bessel function $j_\ell(kx)$ from a to b for all multipoles from ell_min to ell_max. Computes: $\int_a^b K(x,k) j_\ell(kx) dx$ for each $\ell$. The results are stored in result, which must have length (ell_max - ell_min + 1).

ncm_sbessel_integrator_integrate_ell

Integrates the function F(x, k) multiplied by the spherical Bessel function $j_\ell(kx)$ from a to b for a single multipole. Computes: $\int_a^b K(x,k) j_\ell(kx) dx$.

ncm_sbessel_integrator_integrate_gaussian

Integrates a Gaussian function $\exp(-\frac{1}{2}(\frac{x - center}{std})^2)$ multiplied by the spherical Bessel function $j_\ell(kx)$ from a to b for all multipoles from ell_min to ell_max. The results are stored in result, which must have length (ell_max - ell_min + 1).

ncm_sbessel_integrator_integrate_gaussian_ell

Integrates a Gaussian function $\exp(-\frac{1}{2}(\frac{x - center}{std})^2)$ multiplied by the spherical Bessel function $j_\ell(kx)$ from a to b for a single multipole.

ncm_sbessel_integrator_integrate_rational

Integrates a rational function $\frac{x^2}{(1+((x - center)/std)^2)^3}$ multiplied by the spherical Bessel function $j_\ell(kx)$ from a to b for all multipoles from ell_min to ell_max. The results are stored in result, which must have length (ell_max - ell_min + 1).

ncm_sbessel_integrator_integrate_rational_ell

Integrates a rational function $\frac{x^2}{(1+((x - center)/std)^2)^3}$ multiplied by the spherical Bessel function $j_\ell(kx)$ from a to b for a single multipole.

ncm_sbessel_integrator_ref

Increases the reference count of sbi by one.

ncm_sbessel_integrator_set_ell_range

Sets the multipole range for integration. If the range has changed from the previous call, subclasses may perform preparation work (e.g., allocating operators for the new range). The default implementation simply updates ell_min and ell_max properties.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

NumCosmoMath.SBesselIntegrator:ell-range

Multipole range [ell_min, ell_max]. Both values must be non-negative integers with ell_min <= ell_max.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct NumCosmoMathSBesselIntegratorClass {
  void (* set_ell_range) (
    NcmSBesselIntegrator* sbi,
    guint ell_min,
    guint ell_max
  );
  gdouble (* integrate_ell) (
    NcmSBesselIntegrator* sbi,
    NcmSBesselIntegratorF F,
    gdouble a,
    gdouble b,
    gdouble k,
    gint ell,
    gpointer user_data
  );
  void (* integrate) (
    NcmSBesselIntegrator* sbi,
    NcmSBesselIntegratorF F,
    gdouble a,
    gdouble b,
    gdouble k,
    NcmVector* result,
    gpointer user_data
  );
  
}

No description available.

Class members
set_ell_range: void (* set_ell_range) ( NcmSBesselIntegrator* sbi, guint ell_min, guint ell_max )

No description available.

integrate_ell: gdouble (* integrate_ell) ( NcmSBesselIntegrator* sbi, NcmSBesselIntegratorF F, gdouble a, gdouble b, gdouble k, gint ell, gpointer user_data )

No description available.

integrate: void (* integrate) ( NcmSBesselIntegrator* sbi, NcmSBesselIntegratorF F, gdouble a, gdouble b, gdouble k, NcmVector* result, gpointer user_data )

No description available.

Virtual methods

NumCosmoMath.SBesselIntegratorClass.integrate

Integrates the function F(x, k) multiplied by the spherical Bessel function $j_\ell(kx)$ from a to b for all multipoles from ell_min to ell_max. Computes: $\int_a^b K(x,k) j_\ell(kx) dx$ for each $\ell$. The results are stored in result, which must have length (ell_max - ell_min + 1).

NumCosmoMath.SBesselIntegratorClass.integrate_ell

Integrates the function F(x, k) multiplied by the spherical Bessel function $j_\ell(kx)$ from a to b for a single multipole. Computes: $\int_a^b K(x,k) j_\ell(kx) dx$.

NumCosmoMath.SBesselIntegratorClass.set_ell_range

Sets the multipole range for integration. If the range has changed from the previous call, subclasses may perform preparation work (e.g., allocating operators for the new range). The default implementation simply updates ell_min and ell_max properties.