Namespace
NumCosmoMath – 1.0
NumCosmo Math Library
Dependencies
| GObject—2.0 | The base type system library |
| Browse documentation |
Related libraries
| NumCosmo | NumCosmo Library |
| Browse 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 |
| 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 |
| FitESMCMCWalker |
Abstract proposal move of |
| FitESMCMCWalkerAPES |
Approximate Posterior Ensemble Sampler (APES) move for |
| FitESMCMCWalkerStretch |
Stretch move of Goodman and Weare for |
| FitESMCMCWalkerWalk |
Walk move of Goodman and Weare for |
| 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 |
| 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 |
| 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 |
| ModelCtrl |
Records the state of a |
| 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 |
|
| MPIJobFit |
|
| MPIJobMCMC |
|
| MPIJobTest |
|
| MSet |
A set of different NcmModel objects. |
| MSetCatalog |
Ordered table of free-parameter values of a |
| MSetFunc |
Abstract class for functions of the models in a |
| MSetFunc1 |
Abstract class for |
| MSetFuncList |
A |
| MSetTransKern |
Abstract proposal distribution over the free parameters of a |
| MSetTransKernCat |
Proposals drawn from a |
| 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 |
| 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 |
| 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$ ( |
| RNG |
Pseudo-random number generator wrapping a GSL |
| 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 |
| 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 |
| 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 |
| Spline2dSpline |
Spline of splines on a rectangular grid. |
| SplineBSpline |
Interpolating B-spline of order 2 to |
| 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 |
| 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 |
| StatsDistKernelGauss |
Multivariate Gaussian kernel for |
| StatsDistKernelST |
Multivariate Student’s t kernel for |
| 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 |
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
|
| DTuple2 |
A pair of doubles. |
| DTuple3 |
A triple of doubles. |
| FitGrad |
Container for gradient functions. |
| FunctionSampleSetIter |
Iterator for traversing samples in a |
| 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 |
| 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 |
| ObjDictInt |
Reference-counted dictionary from integers to |
| ObjDictStr |
Reference-counted dictionary from strings to |
| 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 |
| SFSphericalHarmonicsYArray |
State of the recursion at several angles; see |
| Spline2dBicubicCoeffs |
The coefficients of the bicubic polynomial of a grid cell with lower corner
$(x_j, y_i)$: element |
| TriVec | |
| VarDict |
Reference-counted dictionary from strings to |
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 |
| CSQ1DInitialStateType |
How |
| 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 |
| 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 |
| IntegralNDError |
How |
| IntegralNDMethod |
The cubature algorithms of |
| MatrixInternal |
Origin of the data of a |
| ModelFunnelSParams |
Scalar parameters of |
| ModelFunnelVParams |
Vector parameters of |
| ModelMVNDVParams |
Vector parameters of |
| ModelRosenbrockSParams |
Parameters of |
| 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_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 |
| NNLSUMethod |
Method for the unconstrained least-squares problems of ncm_nnls_solve(). |
| ParamType |
NcmParamType indicates if the parameter must be fitted, |
| 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 |
| 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 |
| SplineGslType |
GSL interpolation methods of |
| 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 |
| StatsDistCV |
Cross-validation method to be applied. |
| StatsDistKDECovType |
The scale matrix shared by the kernels of |
| 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 |
Bitfields
| MSetCatalogTrimType |
See |
| SerializeOpt |
Options of |
| 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 |
| CfgError |
Error codes of the #NCM_CFG_ERROR domain. |
| ModelError |
Error codes returned by the |
| MSetError |
Error codes returned by the |
Callbacks
| _FitLSFJ | |
| _FitLSJ | |
| _FitM2lnLGrad | |
| _FitM2lnLValGrad | |
| _Integrand2dimFunc | |
| _Integrand3dimFunc | |
| BinSplitEval |
Sets |
| CfgLoggerFunc |
Function receiving log messages, see ncm_cfg_set_log_handler(). |
| DataFisherMatrix |
The fisher_matrix virtual method of |
| DataGaussCovMVNDBound | |
| DiffFunc1to1 |
Function $f: \mathbb{R} \to \mathbb{R}$. |
| DiffFunc1toM |
Function $f: \mathbb{R} \to \mathbb{R}^M$, writing $f(x)$ into |
| DiffFuncNto1 |
Function $f: \mathbb{R}^N \to \mathbb{R}$. |
| DiffFuncNtoM |
Function $f: \mathbb{R}^N \to \mathbb{R}^M$, writing $f(x)$ into |
| FftlogFunc | |
| FitMCResample | |
| FitUpdateChange | |
| FitUpdater | |
| FitWriter | |
| FuncEvalLoop | |
| FunctionSampleSetFunc |
Vector-valued function type $\vec{F}: \mathbb{R} \to \mathbb{R}^n$.
The function should evaluate at |
| Integral1dF |
The integrand of |
| Integral1dPtrF |
The integrand of |
| IntegralNDF |
The integrand of |
| IntegralNDGetDimensions |
Gets the dimensions of the integrand of |
| MemoryPoolAlloc | |
| ModelAddSubmodel | |
| ModelFunc0 | |
| ModelFunc1 | |
| ModelFunc2 | |
| ModelVFunc0 | |
| ModelVFunc1 | |
| ModelVFunc2 | |
| MSetFunc1N |
The eval1 virtual function of |
| MSetFuncListN | |
| MSetFuncN | |
| OdeSplineDydx |
The right-hand side of the ODE of |
| PriorFlatMean | |
| PriorGaussMean | |
| ReparamV |
Function type for reparameterization.
See also |
| SBesselIntegratorF |
The radial kernel $K(\chi, k)$ of |
| 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 |
| binsplit_eval_join |
Adds the next |
| binsplit_eval_prec |
Sets |
| binsplit_free |
Frees |
| binsplit_get |
Computes the sum $T / (BQ)$ into |
| binsplit_get_d | |
| binsplit_get_q |
Sets |
| binsplit_join |
Sets |
| binsplit_test_next |
Evaluates the next |
| cfg_array_set_variant |
Resizes |
| cfg_array_to_variant |
Creates a |
| cfg_command_line |
Joins |
| cfg_enable_gsl_err_handler |
Restores the GSL error handler that |
| cfg_entries_to_keyfile |
Writes the current values of |
| cfg_enum_get_value | |
| cfg_enum_print_all |
Prints to standard output a table of the values, names and nicks of every member of
|
| cfg_exists | |
| cfg_fftw_plan_begin |
Starts creating FFTW plans: loads the FFTW wisdom of this MPI rank, once per process, from
|
| cfg_fftw_plan_destroy |
Destroys |
| cfg_fftw_plan_end |
Releases the planning lock and, when |
| cfg_fullpath_base_is_legacy | |
| cfg_get_commit_hash | |
| cfg_get_data_directory |
Looks for the |
| cfg_get_data_filename |
Looks for NCM_CFG_DATA_DIR_ENV, the installed package data directory and the source directory. |
| cfg_get_enum_by_id_name_nick |
Looks up |
| 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 |
| 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 |
| cfg_register_obj |
Registers |
| 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 |
| cfg_set_fftw_default_flag |
Sets the planner flag used for new FFTW plans and FFTW’s planner time limit; a negative
|
| cfg_set_fftw_default_flag_str |
Same as |
| cfg_set_fftw_default_from_env |
Same as |
| cfg_set_fftw_default_from_env_str |
Same as |
| cfg_set_log_handler |
Sends the message, info and debug log messages to |
| cfg_set_logfile |
Sends the log messages to |
| cfg_set_logstream |
Sends the log messages to |
| 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 |
| 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 |
| func_eval_threaded_loop_full |
Calls |
| func_eval_threaded_loop_nw |
Splits [ |
| 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 |
| 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 |
| integral_get_workspace |
Takes a GSL integration workspace of |
| integral_locked_a_b |
Integrates |
| integral_locked_a_inf |
Integrates |
| integrate_2dim |
Integrates over [ |
| integrate_2dim_divonne |
Integrates over [ |
| integrate_3dim_divonne |
Integrates over the box [ |
| lapack_dgeev |
Computes the eigenvalues and, optionally, the eigenvectors of the general |
| lapack_dgeevx |
Same as |
| lapack_dgelqf |
Computes the LQ factorization $A = L Q$ of the row-major |
| lapack_dgels |
Solves the least-squares or minimum-norm problem for the full-rank |
| lapack_dgelsd |
Solves the least-squares problem by the singular value decomposition, with LAPACK DGELSD,
passing the arguments unchanged, so |
| lapack_dgeqlf |
Computes the QL factorization $A = Q L$ of the row-major |
| lapack_dgeqrf |
Computes the QR factorization $A = Q R$ of the row-major |
| lapack_dgerqf |
Computes the RQ factorization $A = R Q$ of the row-major |
| lapack_dgesv |
Solves $A x = b$ for a general |
| lapack_dggglm_alloc |
Allocates the workspace of |
| 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 |
| lapack_dpotrf |
Replaces the |
| lapack_dpotri |
Replaces the Cholesky factor from |
| lapack_dpotrs |
Solves $A x = b$ for each right-hand side with the Cholesky factor from
ncm_lapack_dpotrf(), with LAPACK DPOTRS; |
| lapack_dptsv |
Solves $A x = b$ for the symmetric positive definite tridiagonal $A$ with diagonal |
| lapack_dsyevd |
Computes all eigenvalues and, optionally, eigenvectors of the symmetric |
| lapack_dsyevr |
Computes selected eigenvalues and, optionally, eigenvectors of the symmetric |
| lapack_dsysv |
Solves $A x = b$ for the symmetric |
| lapack_dsysvx |
Solves $A x = b$ for the symmetric |
| lapack_dsysvxx |
Solves $A x = b$ for the symmetric |
| lapack_dsytrf |
Replaces the |
| lapack_dsytri |
Replaces the factorization from |
| lapack_dsytrs |
Solves $A x = b$ with the factorization from ncm_lapack_dsytrf(), with LAPACK DSYTRS; |
| message |
Logs the formatted message as a message of the NumCosmo log domain. |
| message_str |
Logs |
| message_ww |
Logs |
| mpsf_0F1_d |
Same as ncm_mpsf_0F1_q() with |
| mpsf_0F1_free_cache |
Frees the pool of splitting buffers of the ${}_0F_1$ functions. |
| mpsf_0F1_q |
Computes ${}_0F_1(b; x)$ into |
| mpsf_sbessel |
Computes $j_\ell(x)$ into |
| mpsf_sbessel_d |
Same as |
| 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 |
| mpz_clears |
Clears |
| mpz_inits |
Initializes |
| poly_roots_real_cubic |
Computes the real roots of the cubic, with $a_3 \ne 0$, see |
| 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 |
| 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 |
| 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
|
| sf_sbessel_taylor |
Computes the Taylor coefficients of $j_\ell$ at |
| 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 |
| spline2dim_integ_total | |
| string_ww |
Wraps |
| 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 |
| 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 |
| util_cvode_print_stats |
Logs the integrator statistics of |
| 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 |
| util_function_params |
Parses the function name and its numerical parameters from |
| util_gaussian_integral |
Same as |
| 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 |
| 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 |
| util_position_angle | |
| util_projected_radius | |
| util_set_or_call_error |
Sets |
| 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 |
| 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 |
| assert_cmpdouble_e |
Test assertion on |
| BINSPLIT_DECL |
Declares a term function of ncm_binsplit_eval.c, setting |
| BINSPLIT_DENC_NULL |
A term function that does nothing, for a factor identically one. |
| CHECK_PREPARED |
Aborts if |
| COMPLEX_INIT | |
| COMPLEX_INIT_REAL | |
| COMPLEX_PTR | |
| CVODE_CHECK |
Returns |
| DTUPLE2_STATIC_INIT |
Static initializer for a NcmDTuple2 tuple = NCM_DTUPLE2_STATIC_INIT (1.0, 2.0);
|
| DTUPLE3_STATIC_INIT |
Static initializer for a NcmDTuple3 tuple = NCM_DTUPLE3_STATIC_INIT (1.0, 2.0, 3.0);
|
| FITS_ERROR |
Aborts with the CFITSIO error message if |
| g_string_clear |
If |
| GARRAY_DUP |
Sets |
| GARRAY_MEMCPY |
Copies the elements of |
| INTEGRAL_ND_DEFINE_TYPE |
Same as |
| INTEGRAL_ND_DEFINE_TYPE_WITH_FREE |
Defines a final subclass of |
| LAPACK_CHECK_INFO |
Aborts with |
| 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 |
| 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 |
| TEST_FREE |
Test assertion that calling |
| TEST_GSL_RESULT |
Aborts with the GSL error message if |
| TEST_PASS |
Test assertion that running |
| UNUSED |
Marks |
| 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 |
| UTIL_DEFINE_CALLBACK |
Defines the type and functions declared by NCM_UTIL_DECLARE_CALLBACK(). |
| util_exp10 |
Evaluates to $10^x$. |
| UTIL_ON_ERROR_FORWARD |
If * |
| UTIL_ON_ERROR_RETURN |
If * |