Method
NumCosmoGalaxyShapeFactorprepare_data_array_at_nodes
Declaration [src]
gboolean
nc_galaxy_shape_factor_prepare_data_array_at_nodes (
NcGalaxyShapeFactor* gsf,
NcmMSet* mset,
GPtrArray* data_array,
const GPtrArray* z_nodes_per_galaxy,
gboolean update_radius,
gboolean update_crit,
gboolean update_sigma
)
Description [src]
Pre-computes cached quantities (Sigma_crit per node, Sigma(R)) for the fixed quadrature path. This unconditionally (re)computes every per-galaxy node cache: deciding when a recompute is needed is the caller’s responsibility.
A thin wrapper composing nc_galaxy_shape_factor_prepare() (which refreshes
the shared pr_prefactor/lens_ctx this relies on) with
nc_galaxy_shape_factor_update_data_radius(),
nc_galaxy_shape_factor_update_data_at_nodes_crit() and
nc_galaxy_shape_factor_update_data_at_nodes_sigma() — for callers that
want everything refreshed unconditionally in one call (e.g. the
standalone factor tests). NcDataClusterWLFactor instead calls the three
per-galaxy functions directly, each gated by its own independent hash condition.
Parameters
mset-
Type:
NcmMSetA
NcmMSet.The data is owned by the caller of the method. data_array-
Type: An array of
NonePer-galaxy shape data.
The data is owned by the caller of the method. z_nodes_per_galaxy-
Type: An array of
NcmVector*Per-galaxy z node vectors.
The data is owned by the caller of the method. update_radius-
Type:
gbooleanWhether the radius must be updated.
update_crit-
Type:
gbooleanWhether the critical surface density cache data must be updated.
update_sigma-
Type:
gbooleanWhether the surface mass density cache must be updated.