Method
NumCosmoMathSpectralcompute_chebyshev_coeffs_batch_adaptive
Declaration [src]
guint
ncm_spectral_compute_chebyshev_coeffs_batch_adaptive (
NcmSpectral* spectral,
NcmSpectralFBatch F,
guint n_comp,
gdouble a,
gdouble b,
guint level_min,
gdouble reltol,
gdouble abstol,
NcmMatrix** coeffs,
gpointer user_data
)
Description [src]
Computes the Chebyshev coefficients of the n_comp components of $F$ on one shared
grid, as ncm_spectral_compute_chebyshev_coeffs_adaptive_full(). Each node is evaluated
once for all components. Every component must converge, so the one needing the highest
level sets it for all. Reaching NcmSpectral:max-level without converging is an error.
Parameters
F-
Type:
NcmSpectralFBatchVector-valued function to expand.
n_comp-
Type:
guintNumber of components of
F. a-
Type:
gdoubleInterval lower bound.
b-
Type:
gdoubleInterval upper bound.
level_min-
Type:
guintStarting refinement level.
reltol-
Type:
gdoubleRelative tolerance.
abstol-
Type:
gdoubleAbsolute tolerance, in units of the coefficients.
coeffs-
Type:
NcmMatrixAn
n_compby $N$NcmMatrixof coefficients.The argument will be set by the function. The caller of the method takes ownership of the returned data, and is responsible for freeing it. user_data-
Type:
gpointerUser data for
F.The argument can be NULL.The data is owned by the caller of the method.