Namespace

NumCosmoMath – 1.0

NumCosmo Math Library

Version0.28.0
AuthorsNumCosmo Developers
LicenseLGPL-2.1-or-later
Websitehttps://numcosmo.readthedocs.io/en/latest/
Sourcehttps://github.com/NumCosmo/NumCosmo

Build

C headersnumcosmo/numcosmo-math.h
pkg-config filesnumcosmo

Dependencies

GObject—2.0 The base type system library
Browse documentation
NumCosmo NumCosmo Library
Browse documentation

Additional documentation

Classes

Bootstrap

Random samples of the indexes of a data set.

C

Mathematical and physical constants.

Catalog

Lightweight named-column catalog.

CSQ1D

Abstract class for one-dimensional harmonic-oscillator evolution using the complex-structure formalism.

Data

Abstract class for implementing data objects.

DataDist1d

Abstract class for a sample drawn from a one-dimensional distribution.

DataDist2d

Abstract class for a sample drawn from a two-dimensional distribution.

DataFunnel

Likelihood of Neal’s funnel distribution.

DataGauss

Gaussian data given by its inverse covariance.

DataGaussCov

Gaussian data given by its covariance.

DataGaussCovMVND

Multivariate normal data with a fixed covariance.

DataGaussDiag

Gaussian data with a diagonal covariance.

DataGaussMix2D

Likelihood of a two-component Gaussian mixture in two dimensions.

DataPoisson

Abstract class for binned Poisson data.

DataRosenbrock

Likelihood of the Rosenbrock distribution.

Dataset

A set of statistically independent NcmData.

Diff

Numerical differentiation object.

Fftlog

Base class for FFTLog transforms.

FftlogGausswin2

Logarithm fast fourier transform for a kernel given by the square of a Gaussian window function.

FftlogSBesselJ

Logarithm fast fourier transform for a kernel given by the spatial correlation function multipoles.

FftlogTophatwin2

Logarithm fast fourier transform for a kernel given by the square of the spherical Bessel function of order one.

Fit

Abstract class for best-fit searches.

FitESMCMC

Ensemble sampler of the posterior of the free parameters of a NcmFit.

FitESMCMCWalker

Abstract proposal move of NcmFitESMCMC.

FitESMCMCWalkerAPES

Approximate Posterior Ensemble Sampler (APES) move for NcmFitESMCMC.

FitESMCMCWalkerStretch

Stretch move of Goodman and Weare for NcmFitESMCMC.

FitESMCMCWalkerWalk

Walk move of Goodman and Weare for NcmFitESMCMC.

FitGSLLS

Least-squares best-fit finder using the GSL trust-region solver (gsl_multifit_nlinear) with the Levenberg-Marquardt subproblem.

FitGSLMM

Best-fit finder using the GSL gradient-based minimizers (gsl_multimin_fdfminimizer).

FitGSLMMS

Best-fit finder using the GSL Nelder-Mead simplex minimizers (gsl_multimin_fminimizer).

FitLevmar

Least-squares best-fit finder using the levmar Levenberg-Marquardt library.

FitMC

Monte Carlo study of a best-fit estimator.

FitMCBS

Monte Carlo study of the bootstrap mean.

FitMCMC

Metropolis sampler of the posterior of the free parameters.

FitNLOpt

Best-fit finder using the NLopt library.

FitState

State of a NcmFit.

FunctionCache

Cache of vector-valued function values keyed by a scalar argument.

FunctionSampleSet

Ordered sample set for vector-valued functions $\vec{F}: \mathbb{R} \to \mathbb{R}^n$.

Integral1d

Abstract class for one-dimensional integrals of an integrand $F$.

Integral1dPtr

One-dimensional integral of an integrand given by a function pointer.

IntegralND

Abstract class for integrals of vector-valued functions over hyperrectangles.

ISet

Set of indexes in $[0, n)$, where $n$ is NcmISet:max-index.

LHRatio1d

One-dimensional confidence intervals from the profile likelihood ratio.

LHRatio2d

Two-dimensional confidence regions from the profile likelihood ratio.

Likelihood

Likelihood combining a NcmDataset and priors.

Matrix

Reference-counted row-major matrix of doubles, a view over a #gsl_matrix.

Model

Abstract class for a model: a vector of parameters with their descriptions.

ModelBuilder

Builds a NcmModel subclass at run time.

ModelCtrl

Records the state of a NcmModel, so a calculation that depends on it can tell whether it changed.

ModelFunnel

Parameters of Neal’s funnel distribution.

ModelMVND

Mean of a multivariate normal distribution.

ModelRosenbrock

Parameters of the Rosenbrock distribution.

MPIJob

Abstract class for jobs distributed over MPI ranks.

MPIJobFEval

NcmMPIJob that evaluates a fit’s $-2\ln L$ at given points.

MPIJobFit

NcmMPIJob that runs a fit from given starting points.

MPIJobMCMC

NcmMPIJob that evaluates and accepts or rejects MCMC proposals.

MPIJobTest

NcmMPIJob for testing the MPI job machinery.

MSet

A set of different NcmModel objects.

MSetCatalog

Ordered table of free-parameter values of a NcmMSet, optionally kept in sync with a FITS file.

MSetFunc

Abstract class for functions of the models in a NcmMSet.

MSetFunc1

Abstract class for NcmMSetFunc functions written in a language binding.

MSetFuncList

A NcmMSetFunc chosen by name from a registry of C functions.

MSetTransKern

Abstract proposal distribution over the free parameters of a NcmMSet.

MSetTransKernCat

Proposals drawn from a NcmMSetCatalog.

MSetTransKernFlat

Proposals uniform in the box of the free-parameter bounds.

MSetTransKernGauss

Multivariate Gaussian proposals centered on the current point.

NNLS

Non-negative linear least squares.

OdeSpline

Spline of the solution of a first-order ODE.

PLN1D

Poisson-Lognormal probability of an integer count.

Powspec

Abstract class for a power spectrum $P(k, z)$.

PowspecAnalytic

Closed-form power spectrum, evaluated directly.

PowspecCorr3d

Correlation function of a power spectrum on a grid in $(r, z)$.

PowspecFilter

Variance of a power spectrum smoothed by a window, on a grid in $(r, z)$.

PowspecSpline2d

Power spectrum read from a table: an NcmSpline2d of $\ln P$ on $(z, \ln k)$, with $k$ in $\mathrm{Mpc}^{-1}$ and $P$ in $\mathrm{Mpc}^3$.

Prior

Base class for prior distributions.

PriorFlat

Base class for flat prior distributions.

PriorFlatFunc

Flat prior on a derived quantity.

PriorFlatParam

Flat prior on a sampling parameter.

PriorGauss

Base class for Gaussian priors.

PriorGaussFunc

Gaussian prior on a derived quantity.

PriorGaussParam

Gaussian prior on a parameter.

Reparam

Abstract class for a reparametrization of a NcmModel.

ReparamLinear

Linear reparametrization: the new parameters are $$\vec{p}_n = T \vec{p} + \vec{v},$$ with $\vec{p}$ the original parameters of the model, $T$ (NcmReparamLinear:matrix) an invertible square matrix and $\vec{v}$ (NcmReparamLinear:vector) a shift. Construction factors $T$ and aborts when it is singular.

RNG

Pseudo-random number generator wrapping a GSL gsl_rng.

SBesselIntegrator

Base class for spherical Bessel integrators.

SBesselIntegratorGL

Reference spherical Bessel integrator for non-oscillatory integrands.

SBesselIntegratorLevin

Levin-Bessel method for spherical Bessel function integration.

SBesselOdeSolver

Ultraspherical coefficient solver for the spherical-Bessel operator.

Serialize

Serialization, deserialization and duplication of GObject instances.

SFSBesselArray

Spherical Bessel function array evaluator with automatic cutoff.

SFSphericalHarmonics

Recursions for the spherical harmonics.

SkyFootprint

Abstract sky region with sampling and density.

SkyFootprintRectangular

Rectangular sky footprint in right ascension and declination.

SParam

Description of a scalar model parameter: name, symbol, bounds, scale, absolute tolerance, default value and NcmParamType. NcmModel keeps one for each scalar parameter.

Spectral

Chebyshev series of functions on an interval.

SphereMap

Maps on the sphere in the HEALPix pixelization.

SphereNN

Nearest-neighbour search for points given in spherical coordinates.

Spline

Abstract base class of the one-dimensional interpolating splines.

Spline2d

Abstract class for splines of two variables on a rectangular grid.

Spline2dBicubic

Bicubic spline on a rectangular grid.

Spline2dGsl

Bicubic spline on a rectangular grid from NcmSplineGsl splines.

Spline2dSpline

Spline of splines on a rectangular grid.

SplineBSpline

Interpolating B-spline of order 2 to NCM_SPLINE_BSPLINE_MAX_ORDER.

SplineCubic

Abstract base class of the cubic splines, $$s(x) = y_i + b_i \Delta x + c_i \Delta x^2 + d_i \Delta x^3, \qquad \Delta x = x - x_i,$$ on each interval $[x_i, x_{i+1}]$. It evaluates the interpolant, its derivatives and integrals from the coefficients $b_i, c_i, d_i$; the subclasses compute them, and differ in how the second derivatives, $2c_i$, are fixed. Outside the knots the boundary cubic is extrapolated.

SplineCubicD2

Cubic spline with given second derivatives at the knots, so that no linear system is solved. The second derivatives are copied, by ncm_spline_cubic_d2_new() and ncm_spline_cubic_d2_set_d2(); changing the knots or values alone keeps them.

SplineCubicNotaknot

Cubic spline with not-a-knot end conditions: the third derivative is continuous at the second and the next-to-last knots, so the first two and the last two intervals are each one cubic. It needs at least six knots, strictly increasing; preparing aborts otherwise.

SplineGsl

Spline that delegates to a GSL interpolation method.

SplineVec

Vector-valued function $\vec{F}(x)$ whose components are splines on the same knots.

StatsAcorr

Integrated autocorrelation time $\tau$ of one or more scalar series, updated one sample at a time.

StatsDist

Base class for N-dimensional probability distributions reconstructed from samples.

StatsDist1d

Base class for one-dimensional probability distributions on $[x_i, x_f]$.

StatsDist1dEPDF

Kernel density estimate of a one-dimensional distribution from weighted observations.

StatsDist1dSpline

One-dimensional distribution tabulated by a spline, of $-2\ln p(x)$ or of $p(x)$.

StatsDist2d

Base class for two-dimensional probability distributions.

StatsDist2dSpline

Two-dimensional distribution with $-2\ln p(x, y)$ given by a spline.

StatsDistKDE

Kernel mixture with one scale matrix shared by all kernels.

StatsDistKernel

Abstract kernel of the kernel mixture densities of NcmStatsDist.

StatsDistKernelGauss

Multivariate Gaussian kernel for NcmStatsDist.

StatsDistKernelST

Multivariate Student’s t kernel for NcmStatsDist.

StatsDistVKDE

Kernel mixture with one scale matrix per kernel.

StatsVec

Online weighted statistics for vectors.

Timer

Wall-clock timer with progress tracking for a task of a known number of items.

Vector

Reference-counted vector of doubles, a view over a #gsl_vector.

VParam

Description of a vector model parameter: one NcmSParam per component, each a copy of NcmVParam:default-sparam named name_i with symbol {symbol}_i until changed. NcmModel keeps one for each vector parameter.

Structs

BinSplit

Binary splitting of rational series in arbitrary precision.

Complex

Boxed complex double.

CSQ1DState

A point $(\alpha, \gamma)$ of the hyperbolic plane at a time $t$ in a given NcmCSQ1DFrame. The point is a complex structure $J_{ab}$, which fixes a mode of the oscillator up to a time-dependent phase, see ncm_csq1d_state_get_J().

DTuple2

A pair of doubles.

DTuple3

A triple of doubles.

FitGrad

Container for gradient functions.

FunctionSampleSetIter

Iterator for traversing samples in a NcmFunctionSampleSet. Provides O(1) access to sample data once positioned, making it efficient for sequential traversal and interval operations.

IntegralFixed

Gauss-Legendre rules on equal panels with a stored weight, see ncm_integral_fixed_new().

Integrand2dim

An integrand $f(x, y)$ with its user data, for ncm_integrate_2dim() and ncm_integrate_2dim_divonne().

Integrand3dim

An integrand $f(x, y, z)$ with its user data, for ncm_integrate_3dim_divonne().

LapackWS

Workspace of the LAPACK wrappers, grown as needed; see ncm_lapack_ws_new().

LaurentSeries

Laurent polynomial with complex coefficients, $$a(w) = \sum_{h = h_\mathrm{min}}^{h_\mathrm{max}} c_h w^h.$$.

LaurentSeriesTPS

Truncated power series of order $N$ in $g$ with Laurent polynomial coefficients, $$\sum_{n=0}^{N} L_n(w)\,g^n \mod g^{N+1}.$$.

LHRatio2dRegion

Border of a two-dimensional confidence region, as a closed polygon.

MemoryPool

Thread-safe pool of reusable objects.

MemoryPoolSlice

MPIJobCtrl

MSetFuncListStruct

Structure defining a function in the model set function list. This holds metadata for functions that can be evaluated on model parameter sets.

MSetModelDesc

MSetPIndex

ObjArray

Reference-counted array of GObject, serializable by NcmSerialize.

ObjDictInt

Reference-counted dictionary from integers to GObject, serializable by NcmSerialize.

ObjDictStr

Reference-counted dictionary from strings to GObject, serializable by NcmSerialize.

Quaternion

Quaternions and three-vectors, for rotations in three dimensions.

RNGDiscrete

SBesselOdeOperator

Opaque boxed type for a configured spectral operator.

SFSphericalHarmonicsK

Coefficients of the step $\bar{Y}{l+2}^m = K^{l+1}{lm}\,x\,\bar{Y}{l+1}^m - K^l{lm}\,\bar{Y}_l^m$.

SFSphericalHarmonicsY

State of the recursion at one angle; see NcmSFSphericalHarmonics.

SFSphericalHarmonicsYArray

State of the recursion at several angles; see NcmSFSphericalHarmonics. Yl0m and Ylm are indexed with NCM_SF_SPHERICAL_HARMONICS_ARRAY_INDEX().

Spline2dBicubicCoeffs

The coefficients of the bicubic polynomial of a grid cell with lower corner $(x_j, y_i)$: element ij[k][l] multiplies $(x - x_j)^k (y - y_i)^l$.

TriVec

VarDict

Reference-counted dictionary from strings to GVariant, serializable by NcmSerialize.

Enumerations

CatalogColType

Logical type of a catalog column. All values are physically stored in the double backing matrix; the type is schema metadata used to restore the intended dtype when converting to/from external table formats.

CSQ1DEvolState

The variables the evolution is integrated in. The evolution switches between them with the adiabatic threshold, see ncm_csq1d_set_adiab_threshold().

CSQ1DFrame

Frames the state can be expressed in: canonical transformations of the original variables, which act on the hyperbolic plane as isometries. The adiabatic vacuum of order $n$ is near the origin of the adiabatic frame $n$, within $\vert F_1\vert$ in the first and $\vert F_2\vert$ in the second. The non-adiabatic frames use $q_0 = \int\mathrm{d}t/m$, $q_1 = \int q_0^2 m\nu^2\,\mathrm{d}t$, $p_1 = \int q_0 m\nu^2\,\mathrm{d}t$ and $r_1 = \frac{1}{2}\int m\nu^2\,\mathrm{d}t$, see ncm_csq1d_eval_int_1_m() and the related methods; they suit times where these are small, and see ncm_csq1d_change_frame() for the precision of the boosts.

CSQ1DInitialStateType

How ncm_csq1d_prepare() sets the initial conditions. The type also selects the order of ncm_csq1d_compute_adiab(): second order for NCM_CSQ1D_INITIAL_CONDITION_TYPE_ADIABATIC2, fourth order otherwise.

DataPoissonType

Types of Poisson-distributed data. These specify the data format for Poisson likelihood calculations.

DatasetBStrapType

Bootstrap types.

FitESMCMCWalkerAPESKType

Kernel used to build the approximate posterior.

FitESMCMCWalkerAPESMethod

Estimator of the approximate posterior.

FitGradType

Defines the type of gradient calculation.

FitGSLMMAlgos

GSL Multidimensional minimization algorithms.

FitGSLMMSAlgos

GSL Multidimensional minimization algorithms without derivatives.

FitLevmarAlgos

Levmar algorithms.

FitMCResampleType

Resampling of NcmFitMC.

FitNloptAlgorithm

FitNloptResult

FitRunMsgs

Defines the type of messages to be printed during the fit.

FitType

Defines the subclasse of NcmFit to be used.

FunctionCacheSearchType

Side of $x$ on which ncm_function_cache_get_near() searches.

IntegralNDError

How NcmIntegralND measures the error of a vector-valued integral.

IntegralNDMethod

The cubature algorithms of NcmIntegralND.

MatrixInternal

Origin of the data of a NcmMatrix, used internally.

ModelFunnelSParams

Scalar parameters of NcmModelFunnel.

ModelFunnelVParams

Vector parameters of NcmModelFunnel.

ModelMVNDVParams

Vector parameters of NcmModelMVND.

ModelRosenbrockSParams

Parameters of NcmModelRosenbrock.

MPIJobCtrlMsg

Control messages from master to slave. All messages have the same size, specifying tag #NCM_MPI_CTRL_TAG_CMD.

MPIJobCtrlTag

MPI tags for master-slave communication. If NCM_MPI_CTRL_TAG_CMD is used, the message is a control message.

NCM_MPI_CTRL_SLAVE_INIT must be followed by #NCM_MPI_CTRL_TAG_JOB containing the serialized job.

NCM_MPI_CTRL_SLAVE_WORK must be followed by #NCM_MPI_CTRL_TAG_WORK_INPUT containing the serialized input.

NCM_MPI_CTRL_SLAVE_WORK is followed by #NCM_MPI_CTRL_TAG_WORK_RETURN containing the serialized return.

NCM_MPI_CTRL_SLAVE_FREE does not need to be followed by any message. The slave can be reinitialized with #NCM_MPI_CTRL_SLAVE_INIT.

NCM_MPI_CTRL_SLAVE_KILL should not be followed by any message. The slave will exit.

MSetCatalogPostNormMethod

The estimators of ncm_mset_catalog_get_post_lnnorm().

MSetCatalogSync

Catalog sync modes.

MSetTransKernCatSampling

Sampling methods of NcmMSetTransKernCat.

NNLSUMethod

Method for the unconstrained least-squares problems of ncm_nnls_solve().

ParamType

NcmParamType indicates if the parameter must be fitted, NCM_PARAM_TYPE_FREE, or if it remains fixed, NCM_PARAM_TYPE_FIXED, when a statistical analysis is carried out.

PowspecAnalyticGrowth

Shape of the growth factor $D(z)$, normalized so that $D(0) = 1$.

PowspecAnalyticShape

Shape of the transfer function $T(k)$ in $P(k,z) = A k^{n_s} T(k)^2 B(k) D(z)^2$.

PowspecFilterType

Filter type to apply to the power spectrum. See also NcmFftlogTophatwin2 and NcmFftlogGausswin2, for the top-hat and Gaussian filters, respectively.

SBesselOdeConstraint

Which two linear conditions close the two-point problem. Truncating the expansion at $N$ Chebyshev coefficients and keeping the first $N-2$ rows of the discretized equation leaves $N$ unknowns against $N-2$ equations, so two conditions have to be added; under the tau constraint the truncation itself supplies them. The solution family they choose from is the same in all three cases, since the homogeneous solutions $x j_\ell$ and $x y_\ell$ span a two-parameter space. The Levin boundary functional is invariant under that choice, so the constraint decides which member of the family has to be represented, not what the panel integral is.

SphereMapCoordSys

Sphere map coordinate system.

SphereMapOrder

Sphere map pixel ordering.

SplineCurvatureType

Curvature density $c(x)$ of the curvature functionals, such as ncm_spline_curvature_lp_norm().

SplineFuncType

The knot placement methods of NcmSplineFunc.

SplineGslType

GSL interpolation methods of NcmSplineGsl.

StatsAcorrARCrit

Rule that picks the order of the auto-regressive fit.

StatsAcorrMethod

Estimator used to turn the accumulated autocovariances into an integrated autocorrelation time.

StatsDist1dEPDFBw

How NcmStatsDist1dEPDF chooses its kernel bandwidth.

StatsDistCV

Cross-validation method to be applied.

StatsDistKDECovType

The scale matrix shared by the kernels of NcmStatsDistKDE.

StatsVecType

Statistical types for vector statistics computation. These determine which statistical quantities are computed and stored during data accumulation.

VectorInternal

Origin of the data of a NcmVector, used internally.

Bitfields

MSetCatalogTrimType

See ncm_mset_catalog_calc_max_ess_time() and ncm_mset_catalog_calc_heidel_diag().

SerializeOpt

Options of NcmSerialize.

StatsAcorrDiag

Conditions attached to an estimate. Every one of them means the estimate is not to be read as a converged autocorrelation time.

Error Domains

CatalogError

Error codes returned by the NcmCatalog class.

CfgError

Error codes of the #NCM_CFG_ERROR domain.

ModelError

Error codes returned by the NcmModel class.

MSetError

Error codes returned by the NcmMSet class.

Callbacks

_FitLSFJ

_FitLSJ

_FitM2lnLGrad

_FitM2lnLValGrad

_Integrand2dimFunc

_Integrand3dimFunc

BinSplitEval

Sets bs to the sum of the terms in $[n_1, n_2)$ of a series, see ncm_binsplit_eval.c.

CfgLoggerFunc

Function receiving log messages, see ncm_cfg_set_log_handler().

DataFisherMatrix

The fisher_matrix virtual method of NcmData, see ncm_data_fisher_matrix().

DataGaussCovMVNDBound

DiffFunc1to1

Function $f: \mathbb{R} \to \mathbb{R}$.

DiffFunc1toM

Function $f: \mathbb{R} \to \mathbb{R}^M$, writing $f(x)$ into y.

DiffFuncNto1

Function $f: \mathbb{R}^N \to \mathbb{R}$.

DiffFuncNtoM

Function $f: \mathbb{R}^N \to \mathbb{R}^M$, writing $f(x)$ into y.

FftlogFunc

FitMCResample

FitUpdateChange

FitUpdater

FitWriter

FuncEvalLoop

FunctionSampleSetFunc

Vector-valued function type $\vec{F}: \mathbb{R} \to \mathbb{R}^n$. The function should evaluate at x and write the result into y.

Integral1dF

The integrand of NcmIntegral1d.

Integral1dPtrF

The integrand of NcmIntegral1dPtr.

IntegralNDF

The integrand of NcmIntegralND, computing $F$ at each point of x into fval, point after point. npoints is one except for the vectorized methods.

IntegralNDGetDimensions

Gets the dimensions of the integrand of NcmIntegralND.

MemoryPoolAlloc

ModelAddSubmodel

ModelFunc0

ModelFunc1

ModelFunc2

ModelVFunc0

ModelVFunc1

ModelVFunc2

MSetFunc1N

The eval1 virtual function of NcmMSetFunc1.

MSetFuncListN

MSetFuncN

OdeSplineDydx

The right-hand side of the ODE of NcmOdeSpline.

PriorFlatMean

PriorGaussMean

ReparamV

Function type for reparameterization. See also NcmReparam.

SBesselIntegratorF

The radial kernel $K(\chi, k)$ of NcmSBesselIntegrator.

SBesselOdeSolverF

Callback function type for the forcing $F(x)$ of the spherical Bessel ODE in Riccati-Bessel form $u = x\,w$, whose right-hand side is $x F(x)$. The function is evaluated at physical coordinates $x \in [a,b]$ and returns $F(x)$ itself, not the right-hand side.

SpectralF

Function expanded on an interval $[a, b]$.

SpectralFBatch

Vector-valued function expanded on an interval $[a, b]$; one call fills every component.

SplineFuncF

StatsVecUpdateFunc

Updates the accumulated statistics with one weighted sample.

VectorCompFunc

Function of a vector component, see ncm_vector_log_vals_func().

Functions

binsplit_alloc

Allocates an empty NcmBinSplit, with $B = 1$.

binsplit_eval_join

Adds the next nt terms of the series to bs.

binsplit_eval_prec

Sets bs to the sum of the first step terms, then adds step terms at a time until the next term is prec bits below the sum, see ncm_binsplit_test_next().

binsplit_free

Frees bs and the buffers it allocated; the user data is not freed.

binsplit_get

Computes the sum $T / (BQ)$ into res, rounding toward $-\infty$.

binsplit_get_d

binsplit_get_q

Sets q to the sum $T / (BQ)$, in lowest terms.

binsplit_join

Sets bs to the sum over $[n_1, n_3)$. bs may be bs_l or bs_r; the two ranges must be consecutive.

binsplit_test_next

Evaluates the next nt terms of the series, without adding them to bs.

cfg_array_set_variant

Resizes a to the length of var and copies its elements, which must have the element size of a.

cfg_array_to_variant

Creates a GVariant array of etype sharing the data of a, which it holds a reference to.

cfg_command_line

Joins argv with spaces, quoting with single quotes the arguments that contain a space.

cfg_enable_gsl_err_handler

Restores the GSL error handler that ncm_cfg_init() turned off, so that GSL errors abort.

cfg_entries_to_keyfile

Writes the current values of entries as keys of group_name in kfile, each commented with the entry description. Callback entries are skipped.

cfg_enum_get_value

cfg_enum_print_all

Prints to standard output a table of the values, names and nicks of every member of enum_type, in declaration order.

cfg_exists

cfg_fftw_plan_begin

Starts creating FFTW plans: loads the FFTW wisdom of this MPI rank, once per process, from ncm_cfg_wisdom_rank<rank>.fftw3 in the NumCosmo user data directory, see ncm_cfg_init(), and takes the planning lock, see ncm_cfg_lock_plan_fftw(). key identifies the plans: the caller and everything that makes a plan different, such as the transform sizes and kinds and the number of transforms; the current default planner flag is added to it. It only tells whether the process planned the same before, and the wisdom file is the same for every key. Pass the return value to ncm_cfg_fftw_plan_end().

cfg_fftw_plan_destroy

Destroys plan holding the planning lock, see ncm_cfg_lock_plan_fftw(): FFTW’s plan destruction is not thread-safe either. Does nothing for NULL, so it can be the free function of a GPtrArray of plans.

cfg_fftw_plan_end

Releases the planning lock and, when first is TRUE, rewrites the wisdom file if the wisdom changed. A key planned before adds no wisdom, so its save, which exports the whole wisdom to compare it, is skipped. Wisdom is neither loaded nor saved under FFTW_ESTIMATE.

cfg_fullpath_base_is_legacy

cfg_get_commit_hash

cfg_get_data_directory

Looks for the data directory in the same places as ncm_cfg_get_data_filename(). Aborts if none exists.

cfg_get_data_filename

Looks for filename in the data directory under, in order, the path in

NCM_CFG_DATA_DIR_ENV, the installed package data directory and the source directory.

cfg_get_enum_by_id_name_nick

Looks up id_name_nick in enum_type: a decimal integer is taken as the value, otherwise as the name, then as the nick.

cfg_get_fftw_default_flag

cfg_get_fftw_default_flag_str

cfg_get_fftw_timelimit

cfg_get_fullpath

cfg_get_fullpath_base

cfg_get_version

cfg_get_version_string

cfg_init

Initializes the library; it must be called before any other NumCosmo function, and later calls return immediately. It.

cfg_init_full

Same as ncm_cfg_init_full_ptr(), for bindings: the arguments are copied and the possibly modified copy is returned.

cfg_init_full_ptr

Initializes the library; it must be called before any other NumCosmo function, and later calls return immediately. It.

cfg_keyfile_to_arg

Appends to argv, starting at position argc, the command-line arguments equivalent to the keys of group_name in kfile that match entries, and updates argc. Boolean keys become a flag when true, empty values are skipped and list keys repeat the option. argv must have room for them. Aborts if a key cannot be parsed.

cfg_lock_plan_fftw

Locks the global lock that serializes FFTW planning, which is not thread-safe.

cfg_logfile

Turns the log messages on or off.

cfg_logfile_flush

Turns on or off flushing the log stream after each message.

cfg_logfile_flush_now

Flushes the log stream.

cfg_mpi_nslaves

cfg_msg_sepa

Logs a separator line.

cfg_register_functions

Registers, once per process, the NcmMSetFuncList functions of the library models. Called by ncm_cfg_init().

cfg_register_obj

Registers obj and initializes its class, so that it can be found by name, for example when deserializing.

cfg_register_objects

Registers the library types with ncm_cfg_register_obj(). Called by ncm_cfg_init().

cfg_set_blis_nthreads

Sets the number of BLIS threads, if NumCosmo was built with BLIS.

cfg_set_error_log_handler

Sends the error and critical log messages to logger, also while ncm_cfg_logfile() is off.

cfg_set_fftw_default_flag

Sets the planner flag used for new FFTW plans and FFTW’s planner time limit; a negative timeout means no limit. Sets error, or aborts if error is NULL, for any other flag.

cfg_set_fftw_default_flag_str

Same as ncm_cfg_set_fftw_default_flag() with the flag named by flag_str. Sets error, or aborts if error is NULL, for any other string.

cfg_set_fftw_default_from_env

Same as ncm_cfg_set_fftw_default_flag() with the flag named in NCM_FFTW_PLANNER and the time limit in NCM_FFTW_PLANNER_TIMELIMIT. Sets error, or aborts if error is NULL, if either is invalid.

cfg_set_fftw_default_from_env_str

Same as ncm_cfg_set_fftw_default_from_env() with the fallback flag given by name.

cfg_set_log_handler

Sends the message, info and debug log messages to logger instead of the log stream.

cfg_set_logfile

Sends the log messages to filename, which is truncated. Aborts if it cannot be opened.

cfg_set_logstream

Sends the log messages to stream.

cfg_set_mkl_nthreads

Sets the number of MKL threads, if NumCosmo was built with MKL.

cfg_set_openblas_nthreads

Sets the number of OpenBLAS threads, if NumCosmo was built with OpenBLAS.

cfg_set_openmp_nthreads

Sets the number of OpenMP threads, if NumCosmo was built with OpenMP.

cfg_string_to_comment

cfg_unlock_plan_fftw

Unlocks the lock taken by ncm_cfg_lock_plan_fftw().

cfg_version_check

cmp

Compares x and y, which are equal when $|x - y| \leq \epsilon_\mathrm{rel} \max(|x|, |y|) + \epsilon_\mathrm{abs}$. If one of them is zero, $\max(|x|, |y|)$ is replaced by one, so reltol also acts as an absolute tolerance.

cmpdbl

d1exprel

d2exprel

d3exprel

exprel

func_eval_log_pool_stats

func_eval_set_max_threads

Sets the maximum number of threads of the global pool, used by every caller of the ncm_func_eval functions. A value of -1 means unlimited.

func_eval_threaded_loop

Calls ncm_func_eval_threaded_loop_nw() with one worker per pool thread, one per processor for an unlimited pool, and serially for a pool of zero threads.

func_eval_threaded_loop_full

Calls lfunc with data on each index of [i, f) as a separate pool task and returns after all finish. Runs a single serial call if the pool has zero threads.

func_eval_threaded_loop_nw

Splits [i, f) into nworkers contiguous ranges, the first one also taking the remainder, and calls lfunc with data on each range in the pool. Returns after all calls finish. Uses at most f - i workers, and runs a single serial call if the pool has zero threads. Requires f > i and nworkers > 0.

integral_cached_0_x

Computes $\int_0^x F$ as the cached integral up to the nearest cached limit $x_n$ plus $\int_{x_n}^x F$, with the tolerances of cache, and caches the result at x.

integral_cached_x_inf

Computes $\int_x^\infty F$ as the cached integral from the nearest cached limit $x_n$ plus $\int_x^{x_n} F$, with the tolerances of cache, and caches the result at x.

integral_get_workspace

Takes a GSL integration workspace of NCM_INTEGRAL_PARTITION subintervals from a thread-safe pool, allocating one when the pool is empty. It must be given back with ncm_memory_pool_return().

integral_locked_a_b

Integrates F over [a, b] with gsl_integration_qag(), the 61-point rule and a pooled workspace; a GSL failure other than GSL_EROUND aborts.

integral_locked_a_inf

Integrates F over $[a, \infty)$ with gsl_integration_qagiu() and a pooled workspace; a GSL failure other than GSL_EROUND aborts.

integrate_2dim

Integrates over [xi, xf] by [yi, yf] with the Cuhre algorithm of Cuba, at most $10^7$ evaluations, warning when they are exhausted.

integrate_2dim_divonne

Integrates over [xi, xf] by [yi, yf] with the Divonne algorithm of Cuba, at most $10^7$ evaluations; aborts when Cuba is older than 4.0.

integrate_3dim_divonne

Integrates over the box [xi, xf] by [yi, yf] by [zi, zf] with the Divonne algorithm of Cuba, with no evaluation limit; aborts when Cuba is older than 4.0.

lapack_dgeev

Computes the eigenvalues and, optionally, the eigenvectors of the general a, with LAPACK DGEEV. LAPACK reads the transpose, whose left and right eigenvectors are the right and left ones of a, so the two are exchanged in the call. a is overwritten. Aborts without LAPACK.

lapack_dgeevx

Same as ncm_lapack_dgeev() with balancing and condition numbers, with LAPACK DGEEVX. Aborts without LAPACK.

lapack_dgelqf

Computes the LQ factorization $A = L Q$ of the row-major a by calling LAPACK DGEQRF on the transpose that LAPACK reads; a is overwritten by the factors, as described by LAPACK DGEQRF. Aborts without LAPACK.

lapack_dgels

Solves the least-squares or minimum-norm problem for the full-rank a, with LAPACK DGELS; trans is converted and m and n are exchanged for the column-major call. a is overwritten by its QR or LQ factorization and b by the solutions. Aborts without LAPACK.

lapack_dgelsd

Solves the least-squares problem by the singular value decomposition, with LAPACK DGELSD, passing the arguments unchanged, so a is read in column-major order. Aborts without LAPACK.

lapack_dgeqlf

Computes the QL factorization $A = Q L$ of the row-major a by calling LAPACK DGERQF on the transpose that LAPACK reads; a is overwritten by the factors, as described by LAPACK DGERQF. Aborts without LAPACK.

lapack_dgeqrf

Computes the QR factorization $A = Q R$ of the row-major a by calling LAPACK DGELQF on the transpose that LAPACK reads; a is overwritten by the factors, as described by LAPACK DGELQF. Aborts without LAPACK.

lapack_dgerqf

Computes the RQ factorization $A = R Q$ of the row-major a by calling LAPACK DGEQLF on the transpose that LAPACK reads; a is overwritten by the factors, as described by LAPACK DGEQLF. Aborts without LAPACK.

lapack_dgesv

Solves $A x = b$ for a general a by LU factorization with partial pivoting, with LAPACK DGESV. a is read in column-major order, so a row-major NcmMatrix gives the solution for its transpose. a is overwritten by the factorization and b by the solutions. Aborts without LAPACK.

lapack_dggglm_alloc

Allocates the workspace of ncm_lapack_dggglm_run() for these arguments, with a LAPACK DGGGLM workspace query. Aborts without LAPACK.

lapack_dggglm_run

Solves the general Gauss-Markov linear model problem of LAPACK DGGGLM for the given matrices and vectors. Aborts without LAPACK.

lapack_dposv

Solves $A x = b$ for the symmetric positive definite a, with LAPACK DPOSV: a is overwritten by its Cholesky factor and b by the solutions. Aborts without LAPACK.

lapack_dpotrf

Replaces the uplo triangle of the symmetric positive definite a by its Cholesky factor, with LAPACK DPOTRF. Without LAPACK, uses gsl_linalg_cholesky_decomp(), which aborts instead of returning an error.

lapack_dpotri

Replaces the Cholesky factor from ncm_lapack_dpotrf() by the uplo triangle of the inverse, with LAPACK DPOTRI. Without LAPACK, uses gsl_linalg_cholesky_invert(), which aborts instead of returning an error.

lapack_dpotrs

Solves $A x = b$ for each right-hand side with the Cholesky factor from ncm_lapack_dpotrf(), with LAPACK DPOTRS; b is overwritten by the solutions. Aborts without LAPACK.

lapack_dptsv

Solves $A x = b$ for the symmetric positive definite tridiagonal $A$ with diagonal d and off-diagonal e, with LAPACK DPTSV, which factors $A = L D L^\intercal$ and overwrites d, e and b. Without LAPACK, uses gsl_linalg_solve_symm_tridiag().

lapack_dsyevd

Computes all eigenvalues and, optionally, eigenvectors of the symmetric a by divide and conquer, with LAPACK DSYEVD; with jobz ‘V’ the eigenvectors overwrite a, one per row. Aborts without LAPACK.

lapack_dsyevr

Computes selected eigenvalues and, optionally, eigenvectors of the symmetric a by the relatively robust representations algorithm, with LAPACK DSYEVR; a is overwritten. Aborts without LAPACK.

lapack_dsysv

Solves $A x = b$ for the symmetric a, with LAPACK DSYSV. Aborts without LAPACK.

lapack_dsysvx

Solves $A x = b$ for the symmetric a, with error bounds and a condition estimate, with LAPACK DSYSVX. Aborts without LAPACK.

lapack_dsysvxx

Solves $A x = b$ for the symmetric a with iterative refinement and error bounds, with LAPACK DSYSVXX. Aborts without LAPACK.

lapack_dsytrf

Replaces the uplo triangle of the symmetric a by its Bunch-Kaufman factorization, with LAPACK DSYTRF. Aborts without LAPACK.

lapack_dsytri

Replaces the factorization from ncm_lapack_dsytrf() by the uplo triangle of the inverse, with LAPACK DSYTRI. Aborts without LAPACK.

lapack_dsytrs

Solves $A x = b$ with the factorization from ncm_lapack_dsytrf(), with LAPACK DSYTRS; b is overwritten by the solutions. Aborts without LAPACK.

message

Logs the formatted message as a message of the NumCosmo log domain.

message_str

Logs msg as a message of the NumCosmo log domain.

message_ww

Logs msg wrapped by ncm_string_ww().

mpsf_0F1_d

Same as ncm_mpsf_0F1_q() with b and x converted exactly to rationals.

mpsf_0F1_free_cache

Frees the pool of splitting buffers of the ${}_0F_1$ functions.

mpsf_0F1_q

Computes ${}_0F_1(b; x)$ into res.

mpsf_sbessel

Computes $j_\ell(x)$ into res, see NcmMpsfSBessel.

mpsf_sbessel_d

Same as ncm_mpsf_sbessel() with x converted exactly to a rational.

mpsf_sbessel_free_cache

Frees the pool of splitting buffers of the spherical Bessel functions.

mpsf_sin_int_free_cache

Frees the pools of splitting buffers of the sine integral.

mpsf_sin_int_mpfr

Computes $\mathrm{Si}(x)$ into res, see NcmMpsfTrigInt.

mpz_clears

Clears z and every #mpz_t in the list.

mpz_inits

Initializes z and every #mpz_t in the list.

poly_roots_real_cubic

Computes the real roots of the cubic, with $a_3 \ne 0$, see NcmPolyRoots.

poly_roots_real_quadratic

Computes the real roots of the quadratic, with $a_2 \ne 0$, from $q = -(a_1 + \operatorname{sgn}(a_1)\sqrt{a_1^2 - 4 a_2 a_0})/2$ as $q/a_2$ and $a_0/q$, which avoids cancellation. A double root is returned twice, except the double root zero of $a_2 x^2$, returned once.

poly_roots_real_quartic

Computes the real roots of the quartic, with $a_4 \ne 0$, see NcmPolyRoots.

poly_roots_real_quartic_or_lower

As ncm_poly_roots_real_quartic(), after dropping the leading coefficients with $|a_i| \le 10^{-14} \sum_j |a_j|$, so the degree may be lower. When every coefficient is dropped, no root is returned.

rational_coarse_double

Sets q to the continued-fraction approximation of x truncated when the next correction is below the double precision. Aborts if the relative difference between q and x exceeds $10^{-15}$.

sf_0F1

Same as ncm_mpsf_0F1_d() at 53 bits, rounded to nearest.

sf_sbessel

Computes the spherical Bessel function $j_\ell(x)$.

sf_sbessel_jl_deriv_from_array

Computes $j_\ell’(x)$ from precomputed $j_l(x)$ values (such as those filled by ncm_sf_sbessel_array_eval()) using $j_\ell’(x) = j_{\ell-1}(x) - \frac{\ell+1}{x} j_\ell(x)$. The downward form keeps the required indices within $[0, \ell]$; its two terms agree to a factor of about two at small $x$, so no accuracy is lost to cancellation there. For $\ell = 0$ it returns $-j_1(x)$ evaluated directly.

sf_sbessel_spline

Builds a cubic not-a-knot spline of $j_\ell$ on $[x_i, x_f]$, placing the knots with

NCM_SPLINE_FUNCTION_SPLINE until the interpolation meets reltol.

sf_sbessel_taylor

Computes the Taylor coefficients of $j_\ell$ at x up to third order, $$ \left(j_\ell(x),\; j’\ell(x),\; \frac{j”\ell(x)}{2!},\; \frac{j”’\ell(x)}{3!}\right), $$ from $j\ell(x)$ and $j_{\ell+1}(x)$ given by ncm_sf_sbessel().

sf_sbessel_xjl_deriv_from_array

Computes $\left(x\, j_\ell(x)\right)’$ from precomputed $j_l(x)$ values using $\left(x\, j_\ell(x)\right)’ = x\, j_{\ell-1}(x) - \ell\, j_\ell(x)$. For $\ell = 0$ it returns $\cos(x)$ exactly.

sf_sin_int

Same as ncm_mpsf_sin_int_mpfr() at 53 bits, rounded to nearest, with x converted exactly to a rational.

spline2dim_integ_total

string_ww

Wraps msg at spaces into lines of at most ncols columns, each ending with a newline.

util_1mcosx

Computes $1 - \cos x$, as $\sin^2 x / (1 + \cos x)$ when $\cos x \geq 0.9$.

util_1msinx

Computes $1 - \sin x$, as $\cos^2 x / (1 + \sin x)$ when $\sin x \geq 0.9$.

util_1pcosx

Computes $1 + \cos x$, as $\sin^2 x / (1 - \cos x)$ when $\cos x \leq -0.9$.

util_1psinx

Computes $1 + \sin x$, as $\cos^2 x / (1 - \sin x)$ when $\sin x \leq -0.9$.

util_basename_fits

Removes a final “.fits” or “.fit” extension, in any case, from fits_filename.

util_cos2x

Computes $\cos(2x)$ as $(\cos x - \sin x)(\cos x + \sin x)$.

util_cvode_check_flag

Checks the value returned by the SUNDIALS function funcname and logs a message on failure. For opt 0, flagvalue is a pointer that must not be NULL; for 1, a pointer to an int flag that must not be negative; for 2, a pointer returned by a memory allocation that must not be NULL. Aborts for other values of opt.

util_cvode_print_stats

Logs the integrator statistics of cvode.

util_fact_size

Computes the smallest integer $n_f \geq \max(n, 1)$ whose only prime factors are 2, 3, 5 and 7, a size for which FFTW is efficient.

util_forward_or_call_error

Does nothing if local_error is NULL. Otherwise moves local_error to *error with the formatted message as a prefix, or aborts with both messages if error is NULL.

util_function_params

Parses the function name and its numerical parameters from func. Aborts if a parameter is not a number.

util_gaussian_integral

Same as ncm_util_normal_gaussian_integral() for the Gaussian of mean mu and standard deviation sigma.

util_great_circle_distance

Computes the angular separation from the Vincenty formula, see great-circle distance.

util_lambert_W0_ln

Computes the principal branch $W_0(y)$ of the Lambert $W$ function from $\ln y$, so that $y$ may exceed the double range. Uses gsl_sf_lambert_W0() for $\ln y < \ln(\mathrm{DBL_MAX}) - 1$, otherwise Newton’s method on $W + \ln W = \ln y$. Aborts if Newton’s method does not converge.

util_ln1pexpx

Computes $\ln(1 + e^x)$ without overflow; it returns $x$ when $e^{-x}$ is below the double precision.

util_log_gaussian_integral

Same as ncm_util_log_normal_gaussian_integral() for the Gaussian of mean mu and standard deviation sigma.

util_log_normal_gaussian_integral

Computes the logarithm of the absolute value of ncm_util_normal_gaussian_integral(), keeping the relative precision in both tails and when the integral is close to one.

util_mln_1mIexpzA_1pIexpmzA

Computes $$z_1 = z - \ln\left(\frac{1 - i A e^{z}}{1 + i A e^{-z}}\right), \qquad z = \rho + i\theta,$$ from the series of the logarithm in $A$ when $e^{|\rho|}|A| < 0.1$, summed until the bound on its remaining terms is below machine precision, and sets $z_1 = \rho_1 + i\theta_1$.

util_normal_gaussian_integral

Computes $\int_{x_l}^{x_u} e^{-x^2/2}\,\mathrm{d}x / \sqrt{2\pi}$, using erfc() when both limits are in the same tail, beyond $3\sqrt{2}$, to keep the relative precision. The result is negative for $x_u < x_l$.

util_position_angle

util_projected_radius

util_set_or_call_error

Sets error to a new error with the formatted message, or aborts with that message if error is NULL. Aborts if error is already set.

util_sinh1

Computes $\sinh(x)/x$, from its Taylor series for $|x| < 0.9$.

util_sinh3

Computes $[\sinh(x) - x] / (x^3/3!)$, from its Taylor series for $|x| < 0.9$.

util_sinhx_m_xcoshx_x3

Computes $[\sinh(x) - x\cosh(x)]/x^3$, without cancellation for $|x| < 0.9$.

util_sleep_ms

Suspends the calling thread for milliseconds.

util_smooth_trans

Computes $f = f_0 \theta_0 + f_1 \theta_1$ with the logistic weights $\theta_0 = 1/(1 + e^{g})$ and $\theta_1 = 1/(1 + e^{-g})$, where $g = 72 (z - z_0 - \Delta z/2)/\Delta z$. At $z_0$ and $z_0 + \Delta z$ the weight of the other value is $e^{-36} \approx 2 \times 10^{-16}$.

util_smooth_trans_get_theta

Computes the weights of ncm_util_smooth_trans().

util_sqrt1px_m1

Computes $\sqrt{1+x} - 1$ as $x / (\sqrt{1+x} + 1)$, without cancellation at $x \approx 0$.

Function Macros

acb_get_complex

assert_cmpdouble

Test assertion on ncm_cmp() (n1, n2) cmp 0, with relative tolerance GSL_DBL_EPSILON and no absolute tolerance.

assert_cmpdouble_e

Test assertion on ncm_cmp() (n1, n2, epsilon, abstol) cmp 0.

BINSPLIT_DECL

Declares a term function of ncm_binsplit_eval.c, setting v to u times the factor of term n.

BINSPLIT_DENC_NULL

A term function that does nothing, for a factor identically one.

CHECK_PREPARED

Aborts if obj is not prepared. Expands to nothing unless NumCosmo is built with NUMCOSMO_CHECK_PREPARE.

COMPLEX_INIT

COMPLEX_INIT_REAL

COMPLEX_PTR

CVODE_CHECK

Returns ret if ncm_util_cvode_check_flag() reports a failure.

DTUPLE2_STATIC_INIT

Static initializer for a NcmDTuple2:

NcmDTuple2 tuple = NCM_DTUPLE2_STATIC_INIT (1.0, 2.0);

DTUPLE3_STATIC_INIT

Static initializer for a NcmDTuple3:

NcmDTuple3 tuple = NCM_DTUPLE3_STATIC_INIT (1.0, 2.0, 3.0);

FITS_ERROR

Aborts with the CFITSIO error message if status is nonzero.

g_string_clear

If s is not NULL, frees it and sets s to NULL.

GARRAY_DUP

Sets dest to a new GArray with a copy of the elements of src.

GARRAY_MEMCPY

Copies the elements of src to dest, which must have the same length and element size.

INTEGRAL_ND_DEFINE_TYPE

Same as NCM_INTEGRAL_ND_DEFINE_TYPE_WITH_FREE with nothing to free.

INTEGRAL_ND_DEFINE_TYPE_WITH_FREE

Defines a final subclass of NcmIntegralND whose instance holds a field data of type user_data.

LAPACK_CHECK_INFO

Aborts with info if it is nonzero.

MODEL_2OPT2IMPL

MODEL_3OPT2IMPL

MODEL_4OPT2IMPL

MODEL_FUNC0_IMPL

MODEL_FUNC1_IMPL

MODEL_FUNC2_IMPL

MODEL_OPT2IMPL

MODEL_SET_IMPL_FUNC

MODEL_VFUNC0_IMPL

MODEL_VFUNC1_IMPL

MODEL_VFUNC2_IMPL

MPI_JOB_DEBUG_PRINT

MSET_MID

MSET_MODEL_DECLARE_ID

Declares a function to get the model id from the model namespace. This macro should be used in the header file of the model.

MSET_MODEL_ID_FUNC

Defines a function to get the model id from the model namespace.

MSET_MODEL_REGISTER_ID

Defines the function to get the model id from the model namespace. This macro should be used in the source file of the model.

N2VECTOR

SF_SPHERICAL_HARMONICS_ARRAY_INDEX

Index of the li-th multipole of the ai-th angle in the flat buffers used by the NcmSFSphericalHarmonicsYArray methods.

SPHERE_MAP_ALM_INDEX

SPHERE_MAP_ALM_SIZE

SPHERE_MAP_INT_TO_XY

SPHERE_MAP_M_START

SPHERE_MAP_N

SPHERE_MAP_XY_TO_INT

STATS_VEC_HEIDEL_PVAL_COR

TEST_FAIL

Test assertion that running cmd in a subprocess aborts.

TEST_FREE

Test assertion that calling cmd on obj finalizes it.

TEST_GSL_RESULT

Aborts with the GSL error message if ret is not GSL_SUCCESS.

TEST_PASS

Test assertion that running cmd in a subprocess succeeds.

UNUSED

Marks x as unused.

UTIL_CALLBACK_ARGS

Writes the extra arguments of NCM_UTIL_DECLARE_CALLBACK() and NCM_UTIL_DEFINE_CALLBACK() with a leading comma, or nothing if empty.

UTIL_DECLARE_CALLBACK

Declares the boxed callback type CallBack, holding a function, its data and the functions that free, copy and prepare the data, and the functions named callback followed by _new, _copy, _free, _eval and _prepare. args_decl is written with NCM_UTIL_CALLBACK_ARGS() and may be empty.

UTIL_DEFINE_CALLBACK

Defines the type and functions declared by NCM_UTIL_DECLARE_CALLBACK(). args_decl and args are written with NCM_UTIL_CALLBACK_ARGS() and may be empty.

util_exp10

Evaluates to $10^x$.

UTIL_ON_ERROR_FORWARD

If *error is set, adds the formatted prefix to its message, runs body and returns value.

UTIL_ON_ERROR_RETURN

If *error is set, runs body and returns value.

Constants

BOOTSTRAP_RNG_NAME

CFG_DATA_DIR_ENV

Name of the environment variable with the directory searched first for data files, see ncm_cfg_get_data_filename().

CFG_HOME_ENV

Name of the environment variable that sets the NumCosmo user data directory, see ncm_cfg_init().

COMPLEX_ZERO

DATA_RESAMPLE_RNG_NAME

DEFAULT_PRECISION

Default relative tolerance of the numerical methods.

DTUPLE2_TYPE

GVariant type string for NcmDTuple2.

DTUPLE3_TYPE

GVariant type string for NcmDTuple3.

FIT_DEFAULT_M2LNL_ABSTOL

FIT_DEFAULT_M2LNL_RELTOL

FIT_DEFAULT_MAXITER

FIT_DEFAULT_PARAMS_RELTOL

FIT_ESMCMC_LRE_MAX_TAU_ROUNDS

FIT_ESMCMC_M2LNL_ID

FIT_ESMCMC_MIN_SYNC_INTERVAL

FIT_ESMCMC_MPI_IN_LEN

FIT_ESMCMC_MPI_OUT_LEN

FIT_MC_MIN_SYNC_INTERVAL

FIT_MCMC_MIN_SYNC_INTERVAL

INTEGRAL1D_DEFAULT_ABSTOL

Default NcmIntegral1d:abstol.

INTEGRAL1D_DEFAULT_ALG

Default NcmIntegral1d:rule, the 61-point Gauss-Kronrod rule.

INTEGRAL1D_DEFAULT_PARTITION

Default NcmIntegral1d:partition.

INTEGRAL1D_DEFAULT_RELTOL

Default NcmIntegral1d:reltol.

INTEGRAL_ABS_ERROR

The default absolute tolerance.

INTEGRAL_ALG

The default GSL Gauss-Kronrod rule, 61 points.

INTEGRAL_ERROR

The default relative tolerance.

INTEGRAL_ND_DEFAULT_ABSTOL

Default NcmIntegralND:abstol.

INTEGRAL_ND_DEFAULT_RELTOL

Default NcmIntegralND:reltol.

INTEGRAL_PARTITION

The number of subintervals of the pooled GSL workspaces.

MODEL_CLASS_IMPL_ALL

MODEL_MAX_STATES

MPI_CTRL_MASTER_ID

MSET_CATALOG_ASYMB_LABEL

MSET_CATALOG_DIST_EST_SD_SCALE

MSET_CATALOG_EXTNAME

MSET_CATALOG_FIRST_ID_LABEL

MSET_CATALOG_FSYMB_LABEL

MSET_CATALOG_HDU0_FUNCTIONS_KEY

MSET_CATALOG_HDU0_MSET_KEY

MSET_CATALOG_INIT_SAMPLER_LABEL

MSET_CATALOG_M2LNL_COLNAME

MSET_CATALOG_M2LNL_SYMBOL

MSET_CATALOG_M2LNP_ID_LABEL

MSET_CATALOG_MARKOVIAN_ID_LABEL

MSET_CATALOG_MSET_FORMAT_LABEL

MSET_CATALOG_MSET_FORMAT_OBJECT

MSET_CATALOG_MSET_FORMAT_VARDICT

MSET_CATALOG_NADDVAL_LABEL

MSET_CATALOG_NCHAINS_LABEL

MSET_CATALOG_NROWS_LABEL

MSET_CATALOG_RNG_ALGO_LABEL

MSET_CATALOG_RNG_INIS_LABEL

MSET_CATALOG_RNG_SEED_LABEL

MSET_CATALOG_RNG_STAT_LABEL

MSET_CATALOG_RTYPE_BSTRAP_MEAN

MSET_CATALOG_RTYPE_LABEL

MSET_CATALOG_RTYPE_UNDEFINED

MSET_CATALOG_SAMPLER_LABEL

MSET_CATALOG_SAMPLER_OPTS_LABEL

MSET_CATALOG_WEIGHTED_LABEL

MSET_INIT_MARRAY

MSET_MAX_STACKSIZE

MSET_MODEL_MAIN

Id of a main model. Used to identify the main model in hierarchy of models.

ODE_SPLINE_DEFAULT_ABSTOL

Default NcmOdeSpline:abstol.

ODE_SPLINE_MIN_STEP

Smallest relative spacing between knots kept by NcmOdeSpline.

POWSPEC_CORR3D_DEFAULT_SIZE

POWSPEC_FILTER_DEFAULT_SIZE

SBESSEL_INTEGRATOR_LEVIN_DEFAULT_CHEB_MIN_ORDER

SBESSEL_INTEGRATOR_LEVIN_DEFAULT_CHEB_RELTOL

SBESSEL_INTEGRATOR_LEVIN_DEFAULT_ELL_CACHE_MAX

SBESSEL_INTEGRATOR_LEVIN_DEFAULT_N_KNOTS

SBESSEL_INTEGRATOR_LEVIN_DEFAULT_RELTOL

SBESSEL_INTEGRATOR_LEVIN_DEFAULT_TAU_CONSTRAINT_GUARD

SBESSEL_INTEGRATOR_LEVIN_DEFAULT_TAU_CONSTRAINT_MIN_OSC

SBESSEL_INTEGRATOR_LEVIN_DEFAULT_TAU_CONSTRAINT_ORDER_FRACTION

SBESSEL_INTEGRATOR_LEVIN_DEFAULT_TURNING_KNOT_MARGIN

SBESSEL_INTEGRATOR_LEVIN_DEFAULT_X_KNOTS_MAX

SBESSEL_INTEGRATOR_LEVIN_DEFAULT_X_KNOTS_MIN

SERIALIZE_AUTOSAVE_NAME

Prefix of the names given with #NCM_SERIALIZE_OPT_AUTONAME_SER.

SERIALIZE_AUTOSAVE_NFORMAT

Printf format of the number that follows #NCM_SERIALIZE_AUTOSAVE_NAME.

SERIALIZE_MATRIX_TYPE

GVariant type string of a serialized NcmMatrix.

SERIALIZE_OBJECT_ARRAY_OBJ_NAME_STR

Key holding the type name of an element in ncm_serialize_array_to_key_file().

SERIALIZE_OBJECT_ARRAY_POS_STR

Prefix of the key-file groups of the elements written by ncm_serialize_array_to_key_file().

SERIALIZE_OBJECT_ARRAY_TYPE

GVariant type string of a serialized NcmObjArray.

SERIALIZE_OBJECT_DICT_INT_TYPE

GVariant type string of a serialized NcmObjDictInt.

SERIALIZE_OBJECT_DICT_STR_TYPE

GVariant type string of a serialized NcmObjDictStr.

SERIALIZE_OBJECT_FORMAT

G_variant_new() format string building a #NCM_SERIALIZE_OBJECT_TYPE from a type name and a GVariant of properties.

SERIALIZE_OBJECT_TYPE

GVariant type string of a serialized object, its type name and properties: (sa{sv}).

SERIALIZE_PROPERTIES_TYPE

GVariant type string of the properties of a serialized object: a{sv}.

SERIALIZE_PROPERTY_TYPE

GVariant type string of one serialized property, a name and a value: {sv}.

SERIALIZE_STRV_TYPE

GVariant type string of a serialized string array.

SERIALIZE_VAR_DICT_TYPE

GVariant type string of a serialized NcmVarDict.

SERIALIZE_VECTOR_TYPE

GVariant type string of a serialized NcmVector.

SF_SPHERICAL_HARMONICS_ARRAY_DEFAULT_ABSTOL

Default absolute tolerance for NcmSFSphericalHarmonicsYArray.

SF_SPHERICAL_HARMONICS_DEFAULT_ABSTOL

Default absolute tolerance for NcmSFSphericalHarmonicsY.

SF_SPHERICAL_HARMONICS_EPS

SF_SPHERICAL_HARMONICS_LATERAL_MOVE

SF_SPHERICAL_HARMONICS_MAX_LEN

Maximum number of angles held by a NcmSFSphericalHarmonicsYArray.

SPHERE_MAP_DEFAULT_SIGNAL

SPHERE_MAP_HEALPIX_NULLVAL

SPLINE2D_BICUBIC_00

SPLINE2D_BICUBIC_01

SPLINE2D_BICUBIC_10

SPLINE2D_BICUBIC_11

SPLINE2D_BICUBIC_F

SPLINE2D_BICUBIC_FX

SPLINE2D_BICUBIC_FXY

SPLINE2D_BICUBIC_FY

SPLINE_BSPLINE_DEFAULT_ORDER

Default B-spline order, degree 7; see NcmSplineBSpline for the measured errors.

SPLINE_BSPLINE_MAX_ORDER

Largest B-spline order supported.

SPLINE_FUNC_DEFAULT_MAX_NODES

Upper bound on the number of knots of ncm_spline_set_func_grid().

SPLINE_KNOT_DIFF_TOL

Smallest relative knot spacing of the adaptive NcmSplineFunc methods.

STATS_ACORR_DEFAULT_DRIFT_THRESHOLD

STATS_ACORR_DEFAULT_MAX_LAG

STATS_ACORR_DEFAULT_MAX_LEVELS

STATS_ACORR_DEFAULT_RELIABILITY_FACTOR

STATS_ACORR_SOKAL_C

STATS_ACORR_VARIANCE_SHIFT_FACTOR

THREAD_POOL_MAX

Maximum number of threads of the global pool of NcmFuncEval.

TIMER_SEC_FORMAT

Printf format of the seconds in the NcmTimer strings.

ZERO_LIMIT

Magnitude below which NcDistance and NcWLSurfaceMassDensity treat the curvature $\Omega_{k0}$ as zero, that is, the universe as flat.