Skip to content

Capability index

Every public name in spectraldiffx (121 of them), each listed once and grouped as the API reference groups it, with the first sentence of its docstring; then the public API of gaussx and of the functax modules spectraldiffx builds on. Search this page before writing a helper: if what you need is here, compose it; if it is almost here, extend it where it lives. Regenerate with make capabilities after changing a public API (tests/test_capabilities.py checks it is current).

spectraldiffx

Fourier: Spectral Transforms (docs/api/fourier/transforms.md)

1-D Transforms

Name Kind What it does
dct function Discrete Cosine Transform of a 1-D vector.
dst function Discrete Sine Transform of a 1-D vector.
idct function Inverse Discrete Cosine Transform of a 1-D vector.
idst function Inverse Discrete Sine Transform of a 1-D vector.

N-D Transforms

Name Kind What it does
dctn function N-dimensional DCT: apply DCT sequentially along each axis.
dstn function N-dimensional DST: apply DST sequentially along each axis.
idctn function N-dimensional inverse DCT: apply IDCT sequentially along each axis.
idstn function N-dimensional inverse DST: apply IDST sequentially along each axis.

Fourier: Eigenvalue Helpers (docs/api/fourier/eigenvalues.md)

FD2 Eigenvalues (Finite-Difference)

Name Kind What it does
dst1_eigenvalues function 1-D Laplacian eigenvalues for the DST-I basis (homogeneous Dirichlet BCs).
dst2_eigenvalues function 1-D Laplacian eigenvalues for the DST-II basis (Dirichlet BCs, staggered grid).
dct1_eigenvalues function 1-D Laplacian eigenvalues for the DCT-I basis (Neumann BCs, regular grid).
dct2_eigenvalues function 1-D Laplacian eigenvalues for the DCT-II basis (homogeneous Neumann BCs).
fft_eigenvalues function 1-D Laplacian eigenvalues for the FFT basis (periodic BCs).
dst3_eigenvalues function 1-D Laplacian eigenvalues for Dirichlet-left + Neumann-right on a regular grid.
dct3_eigenvalues function 1-D Laplacian eigenvalues for Neumann-left + Dirichlet-right on a regular grid.
dst4_eigenvalues function 1-D Laplacian eigenvalues for Dirichlet-left + Neumann-right on a staggered grid.
dct4_eigenvalues function 1-D Laplacian eigenvalues for Neumann-left + Dirichlet-right on a staggered grid.

PS Eigenvalues (Pseudo-Spectral)

Name Kind What it does
dst1_eigenvalues_ps function PS eigenvalues for DST-I (Dirichlet BCs, regular grid).
dst2_eigenvalues_ps function PS eigenvalues for DST-II (Dirichlet BCs, staggered grid).
dct1_eigenvalues_ps function PS eigenvalues for DCT-I (Neumann BCs, regular grid).
dct2_eigenvalues_ps function PS eigenvalues for DCT-II (Neumann BCs, staggered grid).
fft_eigenvalues_ps function PS eigenvalues for the FFT basis (periodic BCs).
dst3_eigenvalues_ps function PS eigenvalues for Dirichlet-left + Neumann-right on a regular grid.
dct3_eigenvalues_ps function PS eigenvalues for Neumann-left + Dirichlet-right on a regular grid.
dst4_eigenvalues_ps function PS eigenvalues for Dirichlet-left + Neumann-right on a staggered grid.
dct4_eigenvalues_ps function PS eigenvalues for Neumann-left + Dirichlet-right on a staggered grid.

Fourier: Fourier Grids (docs/api/fourier/grids.md)

Name Kind What it does
FourierGrid1D class Fourier grid setup for periodic domain.
FourierGrid2D class 2D Fourier grid for doubly periodic domain.
FourierGrid3D class 3D Fourier grid for triply periodic domain.

Fourier: Spectral Derivative Operators (docs/api/fourier/operators.md)

Name Kind What it does
SpectralDerivative1D class 1D Spectral derivative operator using the Fast Fourier Transform (FFT).
SpectralDerivative2D class 2D Spectral derivative operators for doubly periodic rectangular domains.
SpectralDerivative3D class 3D Spectral derivative operators for triply periodic domains.

Fourier: Spectral Filters (docs/api/fourier/filters.md)

Name Kind What it does
SpectralFilter1D class 1D Spectral filter for smoothing and numerical stabilization.
SpectralFilter2D class 2D Spectral filter for doubly periodic domains.
SpectralFilter3D class 3D Spectral filter for triply periodic domains.

Fourier: Spectral Elliptic Solvers (docs/api/fourier/solvers.md)

Layer 0 — Pure Functions

Name Kind What it does
solve_helmholtz_fft_1d function Solve (∇² − λ)ψ = f in 1-D with periodic BCs using the FFT.
solve_poisson_fft_1d function Solve ∇²ψ = f in 1-D with periodic BCs using FFT.
solve_helmholtz_fft function Solve (∇² − λ)ψ = f with periodic BCs using the 2-D FFT.
solve_poisson_fft function Solve ∇²ψ = f with periodic BCs using the 2-D FFT.
solve_helmholtz_fft_3d function Solve (∇² − λ)ψ = f with periodic BCs using the 3-D FFT.
solve_poisson_fft_3d function Solve ∇²ψ = f with periodic BCs using the 3-D FFT.
solve_helmholtz_dst1_1d function Solve (∇² − λ)ψ = f in 1-D with Dirichlet BCs on a regular grid (DST-I).
solve_poisson_dst1_1d function Solve ∇²ψ = f in 1-D with Dirichlet BCs on a regular grid (DST-I).
solve_helmholtz_dst function Solve (∇² − λ)ψ = f with homogeneous Dirichlet BCs using DST-I.
solve_poisson_dst function Solve ∇²ψ = f with homogeneous Dirichlet BCs using DST-I.
solve_helmholtz_dst1 function Solve (∇² − λ)ψ = f with homogeneous Dirichlet BCs using DST-I.
solve_poisson_dst1 function Solve ∇²ψ = f with homogeneous Dirichlet BCs using DST-I.
solve_helmholtz_dst1_3d function Solve (∇² − λ)ψ = f with Dirichlet BCs on a regular 3-D grid (DST-I).
solve_poisson_dst1_3d function Solve ∇²ψ = f with Dirichlet BCs on a regular 3-D grid (DST-I).
solve_helmholtz_dst2_1d function Solve (∇² − λ)ψ = f in 1-D with Dirichlet BCs on a staggered grid (DST-II).
solve_poisson_dst2_1d function Solve ∇²ψ = f in 1-D with Dirichlet BCs on a staggered grid (DST-II).
solve_helmholtz_dst2 function Solve (∇² − λ)ψ = f with Dirichlet BCs on a staggered grid (DST-II).
solve_poisson_dst2 function Solve ∇²ψ = f with Dirichlet BCs on a staggered grid (DST-II).
solve_helmholtz_dst2_3d function Solve (∇² − λ)ψ = f with Dirichlet BCs on a staggered 3-D grid (DST-II).
solve_poisson_dst2_3d function Solve ∇²ψ = f with Dirichlet BCs on a staggered 3-D grid (DST-II).
solve_helmholtz_dct1_1d function Solve (∇² − λ)ψ = f in 1-D with Neumann BCs on a regular grid (DCT-I).
solve_poisson_dct1_1d function Solve ∇²ψ = f in 1-D with Neumann BCs on a regular grid (DCT-I).
solve_helmholtz_dct1 function Solve (∇² − λ)ψ = f with Neumann BCs on a regular grid (DCT-I).
solve_poisson_dct1 function Solve ∇²ψ = f with Neumann BCs on a regular grid (DCT-I).
solve_helmholtz_dct1_3d function Solve (∇² − λ)ψ = f with Neumann BCs on a regular 3-D grid (DCT-I).
solve_poisson_dct1_3d function Solve ∇²ψ = f with Neumann BCs on a regular 3-D grid (DCT-I).
solve_helmholtz_dct2_1d function Solve (∇² − λ)ψ = f in 1-D with Neumann BCs on a staggered grid (DCT-II).
solve_poisson_dct2_1d function Solve ∇²ψ = f in 1-D with Neumann BCs on a staggered grid (DCT-II).
solve_helmholtz_dct function Solve (∇² − λ)ψ = f with homogeneous Neumann BCs using DCT-II.
solve_poisson_dct function Solve ∇²ψ = f with homogeneous Neumann BCs using DCT-II.
solve_helmholtz_dct2 function Solve (∇² − λ)ψ = f with homogeneous Neumann BCs using DCT-II.
solve_poisson_dct2 function Solve ∇²ψ = f with homogeneous Neumann BCs using DCT-II.
solve_helmholtz_dct2_3d function Solve (∇² − λ)ψ = f with Neumann BCs on a staggered 3-D grid (DCT-II).
solve_poisson_dct2_3d function Solve ∇²ψ = f with Neumann BCs on a staggered 3-D grid (DCT-II).
BoundaryCondition type alias Type alias: 'periodic', 'dirichlet', 'dirichlet_stag', 'neumann', 'neumann_stag', or one of 4 supported (left, right) pairs.
solve_helmholtz_2d function Solve (nabla^2 - lambda)psi = f in 2-D with per-axis boundary conditions.
solve_poisson_2d function Solve nabla^2 psi = f in 2-D with per-axis boundary conditions.
solve_helmholtz_3d function Solve (nabla^2 - lambda)psi = f in 3-D with per-axis boundary conditions.
solve_poisson_3d function Solve nabla^2 psi = f in 3-D with per-axis boundary conditions.
modify_rhs_1d function Apply boundary source terms for inhomogeneous BCs to a 1-D RHS.
modify_rhs_2d function Apply boundary source terms for inhomogeneous BCs to a 2-D RHS.
modify_rhs_3d function Apply boundary source terms for inhomogeneous BCs to a 3-D RHS.

Layer 1 — Module Classes

Name Kind What it does
SpectralHelmholtzSolver1D class 1D Helmholtz/Poisson solver with periodic BCs using FFT.
SpectralHelmholtzSolver2D class 2D Helmholtz/Poisson solver with periodic BCs using FFT.
SpectralHelmholtzSolver3D class 3D Helmholtz/Poisson solver with periodic BCs using FFT.
DirichletHelmholtzSolver2D class 2D Helmholtz/Poisson/Laplace solver with homogeneous Dirichlet BCs.
StaggeredDirichletHelmholtzSolver2D class 2D Helmholtz/Poisson solver with Dirichlet BCs on a staggered grid.
NeumannHelmholtzSolver2D class 2D Helmholtz/Poisson/Laplace solver with homogeneous Neumann BCs.
RegularNeumannHelmholtzSolver2D class 2D Helmholtz/Poisson solver with Neumann BCs on a regular grid.
MixedBCHelmholtzSolver2D class 2D Helmholtz/Poisson solver with per-axis boundary conditions.
MixedBCHelmholtzSolver3D class 3D Helmholtz/Poisson solver with per-axis boundary conditions.

Fourier: Capacitance Solver (docs/api/fourier/capacitance.md)

Name Kind What it does
build_capacitance_solver function Pre-compute the capacitance factorisation and return a solver.
CapacitanceSolver class Spectral Poisson/Helmholtz solver for masked irregular domains.

Chebyshev: Chebyshev Grids (docs/api/chebyshev/grids.md)

Name Kind What it does
ChebyshevGrid1D class 1D Chebyshev grid on the domain [-L, L].
ChebyshevGrid2D class 2D Chebyshev grid on [-Lx, Lx] × [-Ly, Ly].
ChebyshevGrid3D class 3D Chebyshev grid on [-Lz, Lz] × [-Ly, Ly] × [-Lx, Lx].

Chebyshev: Chebyshev Derivative Operators (docs/api/chebyshev/operators.md)

Name Kind What it does
ChebyshevDerivative1D class 1D Chebyshev derivative operator using the precomputed differentiation matrix.
ChebyshevDerivative2D class 2D Chebyshev derivative operators on [−Lx, Lx] × [−Ly, Ly].
ChebyshevDerivative3D class 3D Chebyshev derivative operators on [−Lz, Lz] × [−Ly, Ly] × [−Lx, Lx].

Chebyshev: Chebyshev Transforms, Calculus & Quadrature (docs/api/chebyshev/transforms.md)

Transforms

Name Kind What it does
ChebyshevTransform1D class Forward/inverse 1D Chebyshev transform.
ChebyshevTransform2D class Forward/inverse 2D Chebyshev transform (tensor product of 1D).
cheb_dealias_product function Compute the dealiased pointwise product a·b on a Chebyshev grid.

Coefficient-space calculus

Name Kind What it does
chebyshev_derivative_coeffs function Differentiate a Chebyshev series in coefficient space (last axis).
chebyshev_antiderivative_coeffs function Indefinite integral of a Chebyshev series, vanishing at x = −L.
chebyshev_integral_coeffs function Definite integral ∫_{−L}^{L} u(x) dx from Chebyshev coefficients.

Clenshaw–Curtis quadrature

Name Kind What it does
clenshaw_curtis_weights function Clenshaw–Curtis quadrature weights on Gauss–Lobatto nodes of [−L, L].
clenshaw_curtis_integrate_1d function Integrate a 1D nodal field over [−L, L] using Clenshaw–Curtis.
clenshaw_curtis_integrate_2d function Integrate a 2D nodal field over [−Lx, Lx] × [−Ly, Ly].

Chebyshev: Chebyshev Filters (docs/api/chebyshev/filters.md)

Name Kind What it does
ChebyshevFilter1D class 1D Chebyshev spectral filter for smoothing and numerical stabilisation.
ChebyshevFilter2D class 2D Chebyshev spectral filter on [−Lx, Lx] × [−Ly, Ly].

Chebyshev: Chebyshev Helmholtz Solvers (docs/api/chebyshev/solvers.md)

Name Kind What it does
ChebyshevHelmholtzSolver1D class 1D Chebyshev-collocation Helmholtz/Poisson solver with Dirichlet or Neumann BCs.
ChebyshevPoissonSolver1D class 1D Chebyshev Poisson solver: d²u/dx² = f on [−L, L].
ChebyshevHelmholtzSolver2D class 2D Chebyshev-collocation Helmholtz/Poisson solver with Dirichlet BCs.
ChebyshevPoissonSolver2D class 2D Chebyshev Poisson solver: ∇²u = f with Dirichlet BCs.

Spherical: Spherical Grids (docs/api/spherical/grids.md)

Name Kind What it does
SphericalGrid1D class Gauss-Legendre grid for the latitude (colatitude) direction.
SphericalGrid2D class Full sphere latitude-longitude pseudo-spectral grid.

Spherical: Spherical Derivative Operators (docs/api/spherical/operators.md)

Name Kind What it does
SphericalDerivative1D class 1D spectral derivative operator on Gauss-Legendre latitude grid.
SphericalDerivative2D class 2D pseudo-spectral derivative operators on the sphere.

Spherical: Spherical Filters (docs/api/spherical/filters.md)

Name Kind What it does
SphericalFilter1D class 1D spectral filter on the Gauss–Legendre latitude grid.
SphericalFilter2D class 2D spectral filter on the full sphere lat-lon grid.

Spherical: Spherical Harmonic Transform (docs/api/spherical/harmonics.md)

Name Kind What it does
SphericalHarmonicTransform class Full 2D Spherical Harmonic Transform (SHT).

Spherical: Spherical Harmonic Solvers (docs/api/spherical/solvers.md)

Name Kind What it does
SphericalPoissonSolver class Spectral Poisson solver on the sphere: ∇²φ = f.
SphericalHelmholtzSolver class Spectral Helmholtz solver on the sphere: (∇² − α) φ = f.

Geophysical inversions

Name Kind What it does
SphericalVorticityInversionSolver class Vorticity-inversion solver on the sphere.
SphericalDivergenceInversionSolver class Divergence-inversion solver on the sphere.
SphericalHelmholtzDecomposition class Helmholtz decomposition of a horizontal vector field on the sphere.

Listed at gaussx 0.8.0, functax 0.0.6.

Upstream: gaussx

Structured linear algebra. spectraldiffx uses it for the masked-domain capacitance solver (DiagonalizedOperator, circulant_from_symbol, MaskedOperator, grid_coupling_indices, solve) and the Chebyshev Helmholtz solvers (EigenDecomposition, kronecker_sum_solve). A new solve, factorisation or Woodbury / capacitance correction comes from here, not from a hand-written jnp.linalg call.

gaussx

Name Kind What it does
AbstractIntegrator class Protocol for Gaussian integral approximation.
AbstractLikelihood class Base class for likelihood functions with optional analytical ELL.
AbstractLogdetStrategy class Protocol for a log-determinant strategy.
AbstractPreconditioner class Protocol for preconditioners that produce an approximate inverse.
AbstractSketch class A random sketching matrix S ∈ ℝ^(d × M), sampled once.
AbstractSolveStrategy class Protocol for a linear-solve strategy.
AbstractSolverStrategy class Protocol for a solver strategy that pairs a solve and a log-determinant.
AnalyticalPsiStatistics class Protocol for kernels with closed-form Ψ statistics.
AssumedDensityFilter class KL-optimal Gaussian projection of g(x) via moment matching.
AutoSolver class Automatic solver selection from the operator's type, size and tags.
BBMMSolver class CG solve and SLQ logdet with BBMM's defaults (Gardner et al. 2018).
BYM2GMRF class The BYM2 pair (b, u*) (Riebler et al., 2016), with its exact density.
BernoulliLikelihood class Bernoulli likelihood with logit link.
BinomialLikelihood class Binomial likelihood with logit link.
BlockDiag class Block-diagonal operator A = blockdiag(A_1, …, A_D), one block per slice.
BlockTriDiag class Block-tridiagonal operator A with a symmetric off-diagonal band.
CGSolver class Conjugate-gradient solve with a stochastic log-determinant.
CUR class CUR decomposition A ≈ C U R, with C = A_:,J and R = A_I,:.
CallableLikelihood class A factorised likelihood from a per-site log density.
CapacitanceSolver class Solve a base system subject to homogeneous point constraints.
Chandrupatla class Chandrupatla's hybrid inverse-quadratic / bisection root finder.
ColumnID class Column interpolative decomposition A ≈ A_:,J X.
ComposedSolver class Mix-and-match a solve and a log-determinant from different strategies.
ConstantSDE class State-space form of the constant kernel k(τ) = σ_k².
ConstrainedGMRF class A GaussianMRF conditioned on hard linear constraints A_c x = e.
CosineSDE class State-space form of the cosine kernel k(τ) = σ_k² cos(ω₀ τ).
CubatureIntegrator class Third-order spherical-radial cubature on 2 D_x equally weighted points.
DAREResult class Output of dare: the steady-state covariance Σ_x,∞ and gain G_∞.
DenseFallbackWarning class Warning emitted when a structured primitive materialises an operator.
DenseLogdet class Exact log-determinant by gaussx's structural dispatch.
DenseSolver class Exact solver strategy through gaussx structural dispatch.
DiagonalizedOperator class Linear operator A = W⁻¹ diag(γ) W given by a transform pair.
EigenDecomposition class Precomputed eigendecomposition A = V diag(γ) V⁻¹ of a square matrix.
EmissionModel class Linear observation (emission) model with a dense observation operator H.
FifthOrderCubatureIntegrator class Fifth-order fully symmetric cubature on 2 D_x² + 1 points.
FilterState class Output of kalman_filter: the filtered and predicted moments of x_t.
GaussHermiteIntegrator class Gauss-Hermite integrator: a tensor-product rule on order^D_x points.
GaussianExpFam class Gaussian 𝒩(μ, Σ) held by its natural parameters (Λ μ, −½ Λ).
GaussianLikelihood class Gaussian likelihood with isotropic noise, with a closed-form ELL.
GaussianMRF class Gaussian Markov random field x ~ 𝒩(μ, Λ⁻¹) with a structured precision Λ.
GaussianSites class Time-varying Gaussian likelihood sites in natural parameterization.
GaussianSketch class Gaussian sketch: i.i.d. entries S_ij ~ 𝒩(0, 1/d).
GaussianState class Gaussian belief as a pair of mean and covariance operator.
HeteroscedasticGaussianLikelihood class Heteroscedastic Gaussian likelihood with input-dependent noise.
IndefiniteSLQLogdet class Stochastic log |det(A + σ I)| for symmetric, possibly indefinite, A.
InformationDiagnostics class Output of information_diagnostics.
IntegratedWienerSDE class State-space form of the p-times integrated Wiener process.
InterpolatedOperator class Structured kernel interpolation A = W_interp K_ℐℐ W_interpᵀ ≈ K_XX.
IntrinsicGMRF class Improper Gaussian field x ~ 𝒩(μ, (τ R)⁺) on the complement of ker R.
JacobiPreconditioner class Diagonal preconditioner M⁻¹ = diag(1 / |diag(A)|).
KeyedSolver class Bind a PRNG key to a strategy's stochastic log-determinant (gh-384).
Kronecker class Kronecker product A = A_1 ⊗ … ⊗ A_D, applied one factor at a time.
KroneckerSum class Kronecker sum A_1 ⊕ A_2 = A_1 ⊗ I + I ⊗ A_2 of two square operators.
KroneckerSumSqrt class Symmetric square root S of A_1 ⊕ A_2 from the factor eigenvectors.
LOOResult class Result of leave_one_out_cv: the LOO log-likelihood and predictives.
LOVECache class Cached rank-k Lanczos approximation Q diag(θ)⁻¹ Qᵀ of Σ_y⁻¹.
LSMRSolver class LSMR iterative least-squares solver (Fong & Saunders 2011).
LaplaceModel class The latent Gaussian model of a Laplace fit, with the maps one Newton step needs.
LaplaceResult class The Gaussian approximation 𝒩(x̂, Λ_x|y⁻¹) at the mode.
LinearGaussianPosterior class Posterior 𝒩(x_a, P_a) of linear_gaussian_update.
LinearizedSDE class Linear surrogate dx(t) = (F_c,t x(t) + c_t) dt + L_c db(t) of an SDE.
LineaxSolver class A lineax solver as a gaussx solve strategy.
LowRankUpdate class Low-rank update A = A₀ + U D Vᵀ of a base operator, with D = diag(d).
LowerBlockTriDiag class Lower block-bidiagonal operator L, the block Cholesky factor of A.
MINRESSolver class MINRES solver for symmetric, possibly indefinite, systems.
MaskedOperator class Masked view A = A₀[m_r, m_c] of a square base operator A₀.
MaternSDE class State-space form of the Matérn kernel of order p, smoothness p + ½.
MomentMatchResult class Tilted log-normaliser and its derivatives with respect to the cavity mean.
MonteCarloIntegrator class Monte Carlo moment matching: sample, propagate, take empirical moments.
NegativeBinomialLikelihood class Negative-binomial likelihood with log link (NB2, a gamma-Poisson mixture).
NystromLogdet class Nyström-preconditioned SLQ log-determinant of K + σ² I (Wenger et al., 2022).
NystromPreconditioner class Randomized Nyström preconditioner for K + σ² I.
OperatorPreconditioner class Use an externally supplied approximate inverse as a preconditioner.
OrthonormalSketch class Gaussian sketch with orthonormal rows, S Sᵀ = I_d.
PartialCholeskyPreconditioner class Preconditioner from a pivoted partial Cholesky factor.
PeriodicSDE class State-space form of the periodic (MacKay) kernel, as J + 1 harmonics.
PoissonLikelihood class Poisson likelihood with log link.
PreconditionedCGSolver class CG with a pivoted partial Cholesky preconditioner.
PredictionCache class Cached training solve α = Σ_y⁻¹ y (and factor L_y) for amortized predictions.
ProductSDE class Product of two SDE kernels, by Kronecker composition.
PropagationResult class Output moments of a Gaussian pushed through a nonlinear map g.
QuasiPeriodicSDE class Quasi-periodic kernel: a Matérn factor times a periodic factor.
RootDecomposition class Tall factor R of a root decomposition, A ≈ R Rᵀ.
RowSamplingSketch class Weighted row-sampling sketch.
SDEKernel class Abstract state-space form of a kernel k(τ): a linear SDE.
SDEParams class Continuous-time matrices (F_c, L_c, H, Q_c, Σ_x,∞) of a linear SDE.
SLQLogdet class Stochastic log-determinant by stochastic Lanczos quadrature (SLQ).
SLRResult class Linear-Gaussian surrogate produced by statistical linear regression.
SRHTSketch class Subsampled randomized Hadamard transform sketch.
SketchAndPrecondLSMR class Sketch-and-precondition LSMR for tall least squares (Rokhlin & Tygert, 2008).
SoftmaxLikelihood class Softmax (categorical) likelihood for multi-class classification.
SparseCholeskyFactor class Sparse Cholesky factor on a static symbolic pattern.
SparseCholeskySolver class Exact solve / logdet / diag_inv through a sparse Cholesky factor.
SparseOperator class Sparse matrix A with a static SparsityPattern and traced values.
SparseSignSketch class Sparse sign sketch (sparse Johnson-Lindenstrauss transform).
SparsityPattern class Static, hashable sparsity pattern of an M × N matrix A.
SpectralFunction class f(A) = W⁻¹ diag(f(γ)) W for a symmetric A with a factored eigenbasis.
StudentTLikelihood class Student-t likelihood for robust regression.
SumOfKroneckers class Sum of Kronecker products ∑_j A_j ⊗ B_j, applied term by term.
SumOfKroneckersSqrt class Lazy Lanczos square root A^½ of a SumOfKroneckers covariance.
SumSDE class Sum of independent SDE kernels, stacked block-diagonally.
SymbolicCholesky class Symbolic Cholesky factor of a symmetric sparsity pattern.
TaylorIntegrator class First- or second-order Taylor expansion of g about the mean.
Toeplitz class Symmetric Toeplitz matrix A = toeplitz(t) from its first column t.
ToeplitzCholesky class Circulant-embedding sample factor L, N × M, with L Lᵀ = toeplitz(t).
UDLDecomposition class Banded factorisation Λ_x = U D Uᵀ of a block-tridiagonal precision.
UnscentedIntegrator class Unscented transform: 2 D_x + 1 deterministic sigma points.
UpperBlockTriDiag class Upper block-bidiagonal operator U, the transpose of a LowerBlockTriDiag.
add_jitter function Diagonal jitter A + β I for numerical stability.
ar1_precision function Precision of a stationary AR(1) process with marginal precision τ.
as_diagonalized function Express an operator as one DiagonalizedOperator, if possible.
as_linear_operator function Wrap a raw matvec callable as a tagged lineax operator.
besag_structure function Validate a graph Laplacian as a Besag (ICAR) structure matrix.
block_diagonal_tag constant block_diagonal_tag
block_tridiagonal_tag constant block_tridiagonal_tag
blr_diag_update function Damped BLR step on the natural parameters of a diagonal Gaussian.
blr_full_update function Damped BLR step on the natural parameters of a full-rank Gaussian.
build_prediction_cache function Solve Σ_y α = y and cache the result.
bym2_precision function Joint precision Λ of the BYM2 pair (b, u*) (Riebler et al., 2016).
cavity_distribution function EP cavity distribution: remove a fraction α of a site from the marginal.
cavity_from_marginal function Cavity distribution: the marginal with one site divided out.
cholesky function Lower Cholesky factor L of an operator, structured where A is.
cholesky_logdet function Log-determinant log det A from a Cholesky factor L of A = L Lᵀ.
circulant function (Block-)circulant operator C from its first column c.
circulant_from_symbol function (Block-)circulant operator C = DFT⁻¹ diag(γ) DFT from its symbol γ.
collapsed_elbo function Collapsed ELBO (Titsias bound) for sparse GP regression.
column_id function Randomized column interpolative decomposition (Voronin & Martinsson, 2017).
compute_psi_statistics function Compute Ψ statistics, dispatching to analytical or numerical.
conditional function Conditional p(x_A ∣ x_B = b) of a joint Gaussian 𝒩(μ, Σ) from observed entries.
conditional_interpolate function Two-filter fusion at t from a filtered state and a backward message.
conditional_variance function Predictive variance: the Schur-complement diagonal plus a variational term.
cost_expectation function Expected cost of a prediction under an uncertain state.
cov_transform function Covariance propagation through a linear map, J Σ Jᵀ.
create_grid function Regular grid axes g_d = linspace(lo_d, hi_d, N_d), one per dimension.
cubature_points function Spherical-radial cubature points and weights, 2 D_x of them.
cur function Randomized CUR decomposition (Voronin & Martinsson, 2017, §4).
cvi_update_sites function Damped natural-gradient update of CVI sites.
damped_natural_update function Damped update in natural-parameter space.
dare function Steady-state Kalman filter covariance and gain (the filtering DARE).
diag function Diagonal diag(A) of an operator, with structural dispatch.
diag_conditional_variance function Diagonal of the Schur complement, max([K_XX]_nn − [A_X K_ZX]_nn, 0).
diag_inv function Diagonal of the inverse, diag(A⁻¹), without forming A⁻¹.
diagonal_tag constant Re-exported from lineax.
discrepancy_step_size function Adaptive EKI tempering step: the data misfit controller.
discrete_lyapunov_solve function Solve the discrete Lyapunov equation X − A X Aᵀ = B by diagonalising A.
discretize_mfd function Discretise a linear SDE by matrix-fraction decomposition.
discretize_mfd_sequence function Vectorised gaussx.discretize_mfd over a stack of steps Δt_1:T.
eig function Eigenvalues and eigenvectors of A, with structural dispatch.
eigh_generalized function Generalised eigenproblem A v = γ B v, A symmetric and B symmetric PSD.
eigvals function Eigenvalues of A only, with structural dispatch.
eki_step function One ensemble Kalman inversion (EKI) update.
elbo function Evidence lower bound (ELBO) from a likelihood and a precomputed KL.
enkf_analysis function Stochastic (perturbed-observation) ensemble Kalman analysis step.
ensemble_covariance function Empirical covariance from an ensemble as a low-rank operator.
ensemble_cross_covariance function Cross-covariance between two ensembles with the same members.
ensemble_kalman_gain function Kalman gain from an ensemble and its image in observation space.
ensemble_rts_step function One backward step of the ensemble Rauch-Tung-Striebel smoother.
ep_tilted_moments function Moments of the scalar EP tilted distribution, elementwise over a batch.
estimate_spectral_bounds function Estimate the extreme eigenvalues (γ_min, γ_max) of a symmetric operator.
etkf_analysis function ETKF analysis ensemble, without forming the (|ℰ|, |ℰ|) transform.
etkf_transform function Ensemble Transform Kalman Filter (ETKF) analysis weights.
euclidean_distance function Pairwise Euclidean distances ‖aₙ − bₘ‖₂.
expectation_to_mean_chol function Mean μ and Cholesky factor of Σ from the expectation parameters.
expectation_to_natural function Natural parameters (Λ μ, −½ Λ) from the expectation parameters.
expectations_to_ssm function Marginals of a chain from its expectation parameters (𝔼[x], 𝔼[x xᵀ]).
expected_log_likelihood function Unified expected log-likelihood with analytical dispatch.
fem_matrices function Lumped mass C̃ and stiffness G of P1 elements on a triangle mesh.
fem_projector function Observation matrix A of P1 interpolation: (A w)_k = ∑_i ψ_i(s_k) w_i.
fifth_order_cubature_points function Fifth-order fully symmetric cubature points and weights.
fisher_info function Fisher information of the mean μ, which is the precision Λ = Σ⁻¹.
frobenius_norm function Frobenius norm ‖A‖_F of an operator, with structural dispatch.
gaspari_cohn function Gaspari-Cohn (1999) fifth-order compactly supported taper.
gauss_hermite_points function Tensor-product Gauss-Hermite points and weights for a standard Gaussian.
gauss_kl function KL(first ‖ second): KL[q(f_ℐ) ‖ p(f_ℐ)] with p(f_ℐ) = 𝒩(0, K_ℐℐ).
gauss_newton_operator function Matrix-free Gauss-Newton precision of a residual function.
gauss_newton_precision function Gauss-Newton precision J_rᵀ J_r, optionally plus a prior precision.
gaussian_entropy function Entropy of a multivariate normal 𝒩(μ, Σ), independent of the mean.
gaussian_expected_log_lik function Expected Gaussian log-likelihood under q(x), the data term of an ELBO.
gaussian_kl function KL(first ‖ second): KL[p ‖ q] between two multivariate normals.
gaussian_log_prob function Multivariate normal log-density log 𝒩(x; μ, Σ) of a structured covariance.
gaussian_taper function Gaussian localization taper ρ(r) = exp(−r² / (2 L²)).
generalized_variance_scale function Generalized variance of an intrinsic GMRF (Sørbye & Rue, 2014).
ggn_diagonal function Diagonal of the generalized Gauss-Newton matrix J_hᵀ J_h.
gradient_expectation function Expected gradient of a scalar map under a Gaussian, via Stein's lemma.
grid_coupling_indices function Flat indices of masked-out grid cells adjacent to the masked-in region.
grid_data function Inducing inputs X_ℐ, the Cartesian product of the grid axes.
hadamard_transform function Unnormalized Walsh-Hadamard transform along the last axis.
haversine_distance function Pairwise great-circle (haversine) distances on a sphere.
hutchinson_hessian_diag function Stochastic Hessian diagonal by Hutchinson with Rademacher probes.
iid_precision function Precision Λ = τ I of n independent effects with variance 1 / τ.
infinite_horizon_filter function Infinite-horizon Kalman filter with the fixed steady-state gain G_∞.
infinite_horizon_smoother function Infinite-horizon RTS smoother with the fixed steady-state gain G_smooth,∞.
inflate_multiplicative function Multiplicative ensemble inflation about the sample mean.
inflate_rtpp function Relaxation to prior perturbations (RTPP).
inflate_rtps function Relaxation to prior spread (RTPS).
information_diagnostics function Averaging kernel, DOFS and information content of a linear retrieval.
interpolation_operator function The interpolation matrix W as a matrix-free operator, B × G.
inv function Lazy inverse A⁻¹ of an operator, structured where A is.
inv_quad_logdet function Joint inverse-quadratic and log-determinant via shared BBMM CG.
is_block_diagonal function Check whether operator carries the block-diagonal tag.
is_block_tridiagonal function Check whether operator carries the block-tridiagonal tag.
is_diagonal function Re-exported from lineax.
is_eigen_reducible function Whether a sum of Kronecker products has the exact two-term reduction.
is_kronecker function Check whether operator carries the Kronecker tag.
is_kronecker_sum function Check whether operator carries the Kronecker sum tag.
is_low_rank function Check whether operator carries the low-rank tag.
is_lower_triangular function Re-exported from lineax.
is_negative_semidefinite function Re-exported from lineax.
is_positive_semidefinite function Re-exported from lineax.
is_symmetric function Re-exported from lineax.
is_upper_triangular function Re-exported from lineax.
joseph_update function Joseph-form posterior covariance of a Kalman update, stable for any gain.
kalman_filter function Kalman filter forward pass for a linear-Gaussian state-space model.
kalman_gain function Kalman gain of a linear-Gaussian observation of the state x.
kernel_expectations function Kernel expectations Ψ₀, Ψ₁ and Ψ₂ for an uncertain input.
kl_divergence function KL(first ‖ second): KL[q ‖ p] in the Bregman form on natural parameters.
kl_standard_normal function KL(first ‖ second): KL[𝒩(μ, Σ) ‖ 𝒩(0, I)] from the standard normal.
kronecker_mll function Exact marginal log-likelihood log p(y) of a Kronecker-structured GP.
kronecker_posterior_predictive function Posterior mean and variance of a Kronecker GP at grid test inputs.
kronecker_sum_sample function Sample from 𝒩(0, A_1 ⊕ A_2) through the factor eigendecompositions.
kronecker_sum_solve function Solve a shifted Kronecker-sum system in tensor (unvectorised) form.
kronecker_sum_tag constant kronecker_sum_tag
kronecker_tag constant kronecker_tag
laplace_model function Collect and check the pieces of the latent Gaussian model of a Laplace fit.
laplace_result function The Gaussian approximation and the Laplace log-marginal at a mode.
leave_one_out_cv function LOO-CV via the bordered-system identity, without refitting N times.
ledoit_wolf_shrinkage function Ledoit-Wolf shrinkage of an ensemble covariance, without forming it.
linear_gaussian_update function Matrix-free posterior of a linear-Gaussian observation.
linear_solve function Solve A x = b through the unified front door.
linearize_sde function Optimal linear drift of a nonlinear SDE along a Gaussian path.
localization_matrix function Pairwise Gaspari-Cohn taper ρ(d(aₙ, bₘ); c).
localized_kalman_gain function Ensemble Kalman gain with Hadamard (Schur-product) localization.
log_likelihood_expectation function Expected log-likelihood of a callable under a Gaussian, by integration.
log_marginal_likelihood function GP log marginal likelihood, by way of gaussx.gaussian_log_prob.
log_partition function Log-partition of a Gaussian in natural form, normaliser included.
logdet function Log-determinant log ∣det A∣ with structural dispatch on the operator type.
love_cache function Precompute a Lanczos approximation of Σ_y⁻¹ for fast GP variances.
love_residual function Relative solve residual of a LOVE cache for one cross-covariance.
love_variance function Approximate the variance reduction k_X*ᵀ Σ_y⁻¹ k_X* from a LOVE cache.
love_variance_error_bound function Upper bound on the variance over-estimate of a LOVE cache.
low_rank_plus_diag function Build A = diag(a) + U D Vᵀ, a low-rank update of a diagonal base.
low_rank_plus_identity function Build A = c I + U D Vᵀ, a low-rank update of a scaled identity.
low_rank_tag constant low_rank_tag
lower_triangular_tag constant Re-exported from lineax.
masked_moment_inputs function Make masked observation channels inert in a moment-matched update.
masked_obs_covariance function Observation-error covariance with masked entries marginalised out.
matern_spde_params function SPDE parameters (κ, τ, α) of a Matérn field.
matheron_update function Posterior draws of x_A ∣ x_B = β from joint prior draws, by Matheron's rule.
mean_chol_to_expectation function Expectation parameters (𝔼[x], 𝔼[x xᵀ]) from the mean and Cholesky factor.
mean_chol_to_natural function Natural parameters (Λ μ, −½ Λ) from the mean and the Cholesky factor of Σ.
mean_cov_to_natural function Natural parameters (Λ μ, −½ Λ) from the mean and covariance, in operator form.
mean_expectation function Expectation of a map under a Gaussian: 𝔼[g(x)], x ~ 𝒩(μ_x, Σ_x).
meanfield_kalman_filter function Mean-field Kalman filter over L = D_x / d independent state blocks.
meanfield_rts_smoother function Mean-field RTS smoother over L = D_x / d independent state blocks.
mixture_quantile function Invert a CDF at one or more quantile levels by bracketed root finding.
mixture_quantile_gaussian_approx function Quantiles of the Gaussian matched to an ensemble's first two moments.
moment_match function EP moment matching: tilted log-normaliser and its first two derivatives.
moment_transform function Moment triple of (x, g(x)) for a Gaussian x.
natural_to_expectation function Expectation parameters (𝔼[x], 𝔼[x xᵀ]) from the natural parameters.
natural_to_mean_chol function Mean μ and Cholesky factor of Σ from the natural parameters (Λ μ, −½ Λ).
natural_to_mean_cov function Mean μ and covariance Σ from the natural parameters, in operator form.
naturals_to_ssm function Gauss-Markov chain (F_t, Σ_η,t, μ_x,0, Σ_x,0) from its natural parameters.
negative_semidefinite_tag constant Re-exported from lineax.
newton_update function Convert a Newton step into the natural parameters of a site.
nonlinear_kalman_filter function Moment-matched nonlinear Kalman filter (EKF, UKF, CKF, GHKF, …).
nonlinear_kalman_predict function One moment-matched predict step through the dynamics f.
nonlinear_kalman_update function One moment-matched update step through the observation map h.
nonlinear_rts_smoother function Moment-matched nonlinear Rauch-Tung-Striebel smoother.
nonlinear_rts_step function One moment-matched RTS backward step.
oilmm_back_project function Back-project latent GP predictions to the observation space.
oilmm_project function Project multi-output data to independent latent GPs via OILMM.
pairwise_marginals function Joint Gaussian p(x_t, x_t+1) of each pair of consecutive states.
parallel_kalman_filter function Parallel Kalman filter via jax.lax.associative_scan.
parallel_rts_smoother function Parallel RTS smoother via reverse jax.lax.associative_scan.
positive_semidefinite_tag constant Re-exported from lineax.
predict_mean function Predictive mean of a GP at the test inputs, from a prediction cache.
predict_variance function Predictive variance of a GP at the test inputs, from a prediction cache.
process_noise_covariance function Model-noise covariance Σ_η,t of a step, from the stationary covariance.
product_operator function Lazy product A B, applied right to left.
project function Projection A_X = K_Xℐ K_ℐℐ⁻¹ onto the inducing inputs via Cholesky solves.
pseudo_logdet function Log pseudo-determinant: the log of the product of the non-zero eigenvalues.
qb function Randomized QB factorisation A ≈ Q B with B = Qᵀ A.
quadratic_form function Quadratic form xᵀ A⁻¹ x through a single solve.
randomized_eigh function Partial eigendecomposition of a symmetric operator by Rayleigh-Ritz.
randomized_nystrom function Randomized Nyström approximation  = U diag(γ̂) Uᵀ of a PSD A.
randomized_svd function Truncated SVD A ≈ U diag(s) Vᵀ by randomized QB.
range_finder function Orthonormal basis Q for the dominant range of A.
riemannian_psd_correction function Riemannian gradient correction for PSD precision updates.
root_decomposition function Root decomposition of an SPD operator: a tall factor R with A ≈ R Rᵀ.
root_inv_decomposition function Inverse-root decomposition: a tall factor R⁻ with A⁻¹ ≈ R⁻ (R⁻)ᵀ.
rp_cholesky function Randomly pivoted partial Cholesky of a PSD matrix A.
rts_interpolate function Smoothed marginal at an unobserved step t from filtered and smoothed states.
rts_sample function Joint draws of the state path x_1:T from p(x_1:T | y_1:T).
rts_smoother function Rauch-Tung-Striebel backward smoother for kalman_filter output.
rw1_structure function Structure matrix R = D₁ᵀ W D₁ of a first-order random walk.
rw2_structure function Structure matrix R = D₂ᵀ D₂ of a second-order random walk.
safe_cholesky function Cholesky factor with adaptive diagonal jitter for near-singular matrices.
sample_joint_conditional function Joint draws of a partitioned Gaussian, and conditional draws from them.
sample_mvn function Draw samples from 𝒩(μ, Σ), dispatching on the structure of Σ.
sandwich function The sandwich A Σ Aᵀ of two operators, keeping compatible structure.
scaled_operator function Lazy scalar multiple c A, applied after the matvec.
schur_complement function Schur complement K_XX − K_XZ K_ZZ⁻¹ K_ZX, kept as a low-rank update.
sde_autocovariance function Stationary autocovariance k(τ) of an SDE kernel at each lag τ.
sde_kl_divergence function Drift path-KL between a linear and a nonlinear SDE along a Gaussian path.
selected_inverse function The band of Σ = Λ⁻¹ for a symmetric positive-definite BlockTriDiag.
sigma_point_kalman_update function One moment-matched update from evaluations the caller already has.
sigma_points function Scaled unscented sigma points and weights, 2 D_x + 1 of them.
site_mean_var_from_natural function Mean and variance of a site from its natural parameters.
site_natural_from_tilted function Site natural parameters that turn the cavity into the tilted moments.
sites_to_precision function Block-diagonal precision of the sites, as a BlockTriDiag.
sketch_and_solve function Approximate least squares from a sketch.
soar_taper function Second-order auto-regressive (SOAR) taper ρ(r) = (1 + |r| / L) exp(−|r| / L).
solve function Solve A x = b with structural dispatch on the operator type.
solve_columns function Solve A X = B column by column, with structured dispatch per column.
solve_matrix function Solve A X = B with one factorisation for the whole matrix right-hand side.
solve_rows function Solve A xᵢ = bᵢ for each row bᵢ of a matrix B, with one solve per row.
sparse_cholesky function Sparse Cholesky factorisation of a symmetric positive-definite operator.
sparse_conditional function Sparse-GP conditional q(f_X) = ∫ p(f_X ∣ f_ℐ) q(f_ℐ) df_ℐ, per output r.
spde_precision function SPDE precision Λ_α = τ² K (C̃⁻¹ K)^(α−1) with K = κ² C̃ + G.
spde_precision_grid function SPDE precision on a regular grid: a function of a Kronecker sum.
spingp_log_likelihood function Log marginal likelihood log p(y_1:T) of a zero-mean SpInGP prior.
spingp_posterior function Posterior mean μ_x|y and precision Λ_x|y of x_1:T under SpInGP.
sqrt function Principal matrix square root A^½ with structural dispatch, lazy where possible.
sqrt_inv_matmul function Inverse square root times a matrix, A^−½ B, by contour quadrature.
sqrt_matmul function Square root times a matrix, A^½ B, by contour quadrature.
ssm_to_expectations function Expectation parameters (𝔼[x], 𝔼[x xᵀ]) of a chain from its marginals.
ssm_to_naturals function Natural parameters (Λ_x μ_x, −½ Λ_x) of a Gauss-Markov chain.
stable_squared_distances function Squared Euclidean distances between two point sets, centred and widened.
statistical_linear_regression function Moment-match a nonlinear conditional to a linear-Gaussian surrogate.
submatrix function Sub-matrix A[I, J] of an operator, without forming the full matrix.
sufficient_stats function Sufficient statistics (x, x xᵀ) of a Gaussian, over any batch axes.
sum_of_kroneckers_sample function Sample from 𝒩(0, K) with a matrix-free Lanczos square root.
sum_operator function Lazy sum A = A_1 + … + A_D, applied one summand at a time.
svd function Singular value decomposition of A, with structural dispatch.
svd_low_rank_plus_diag function Build A = diag(a) + U diag(s) Vᵀ from a truncated SVD.
svgp_variance_adjustment function SVGP variance adjustment operator Q = K_ℐℐ⁻¹ Σ_ℐ K_ℐℐ⁻¹ − K_ℐℐ⁻¹.
symbolic_cholesky function Symbolic analysis of a sparse Cholesky factorisation (host, cached).
symmetric_tag constant Re-exported from lineax.
symmetrize function Symmetric part of the trailing two axes, removing round-off asymmetry.
theta_design function Integration points and log-weights over hyperparameters θ.
tikhonov_augment function Observation augmentation for Tikhonov-regularised EKI (TEKI).
to_mean_cov function Mean μ and covariance Σ of a Gaussian in natural form.
toeplitz_sample function Draw from 𝒩(0, toeplitz(t)) by circulant embedding and the FFT.
trace function Trace tr(A) of an operator, with structural dispatch.
trace_and_diag function Joint stochastic estimate of tr(A) and diag(A) from one probe pass.
trace_correction function Trace term of the Titsias collapsed ELBO, the Nyström approximation error.
trace_product function Trace of a product of two operators, tr(A B), with structural dispatch.
tridiagonal_solve function Solve a tridiagonal system A x = b from its three bands.
tridiagonal_solve_batched function Solve independent tridiagonal systems over leading batch axes.
tridiagonal_tag constant Re-exported from lineax.
udl_decomposition function Factorise a symmetric block-tridiagonal precision as Λ_x = U D Uᵀ.
udl_from_ssm_params function Build the UDLDecomposition of a Gauss-Markov chain's precision.
udl_to_ssm_params function Read the equivalent Gauss-Markov chain off a UDLDecomposition.
uncertain_bgplvm_predict function Multi-output uncertain GP prediction for a Bayesian GP-LVM.
uncertain_gp_predict function Predictive mean and variance of a GP at an uncertain input.
uncertain_gp_predict_mc function Monte Carlo GP prediction at an uncertain input, by total variance.
uncertain_svgp_predict function Predictive mean and variance of an SVGP at an uncertain input.
uncertain_vgp_predict function Predictive mean and variance of a dense VGP at an uncertain input.
unit_diagonal_tag constant Re-exported from lineax.
unwhiten function Unwhiten a variational mean: μ_ℐ = L_ℐℐ μ_z.
unwhiten_covariance function Unwhiten a variational covariance: Σ_ℐ = L_ℐℐ Σ_z L_ℐℐᵀ.
upper_triangular_tag constant Re-exported from lineax.
variational_elbo_gaussian function Uncollapsed (SVGP) ELBO for a Gaussian likelihood.
variational_elbo_mc function Monte Carlo ELBO for non-conjugate likelihoods.
vb_mean_correction function Low-rank VB correction of the Laplace mean (Van Niekerk & Rue, 2024).
whiten_covariance function Unwhiten a variational covariance: Σ_ℐ = L_ℐℐ Σ_z L_ℐℐᵀ.
whitened_svgp_predict function Whitened SVGP prediction: per-input means μ_n and variances σ²_n.
woodbury_solve function Solve (A + U D Uᵀ) x = b by the Woodbury identity, without the operator.

Upstream: functax

Function approximation: bases, quadrature rules, transforms. The Chebyshev grids take their nodes from chebyshev_nodes and their transforms from ChebyshevTransform1D / ChebyshevTransform2D; clenshaw_curtis_weights is clenshaw_curtis, reversed to the descending nodes; the spherical grids take their Gauss–Legendre rule from gauss_legendre and their Legendre tables from associated_legendre. The differentiation matrices, filters, solvers and the spherical-harmonic transform stay in spectraldiffx. New nodes, weights or a basis evaluation come from here.

functax.geometry

Name Kind What it does
AffineGrid class A regular 2-D grid given by an affine transform and a shape.
Axis class One strictly monotone coordinate axis, optionally periodic or in time.
CurvilinearGrid class A 2-D grid whose node coordinates are given per node, such as a swath.
Metric constant Re-exported from typing.
Points class Scattered sites, with the metric their distances use.
RectilinearGrid class A tensor-product grid with one Axis per dimension.
cartesian_to_tangent function 3-D vectors to their east and north components (v · ê, v · n̂).
chebyshev_nodes function The Chebyshev nodes of degree N on [a, b], from b down to a.
chord_distance function The straight-line distance through the sphere between every pair.
ecef_to_lonlat function Earth-centred, Earth-fixed coordinates to geodetic (λ, φ) and height.
enu_basis function The local east, north and up unit vectors at each point.
fibonacci_sphere function The Fibonacci lattice: n near-uniform points on the unit sphere.
from_pixel function Map fractional pixel (row, col) to coordinates (x, y): the inverse of to_pixel.
gauss_legendre_grid function The Gauss–Legendre grid on the sphere, with its quadrature weights.
geodesic_distance function The great-circle distance between every pair.
healpix_grid function HEALPix pixel centres, each weighted by the equal pixel area.
icosphere function The subdivided icosahedron, a quasi-uniform triangle mesh of the sphere.
latlon_grid function The regular cell-centred lon/lat grid, weighted by exact cell areas.
local_tangent_plane function Project points onto the tangent plane at origin, as (east, north).
lonlat_to_ecef function Geodetic (λ, φ) and height to Earth-centred, Earth-fixed coordinates.
lonlat_to_unit function Lift longitude and latitude onto the unit sphere.
mesh_vertex_areas function The lumped (barycentric) vertex areas of a triangle mesh.
pairwise_distance function The distance from every source to every target, in their shared metric.
pixel_centres function The x and y of every pixel centre of a grid, each of shape (rows, cols).
rotation_to_pole function The rotation R with R û(centre) = (0, 0, 1).
spherical_polygon_area function The signed area of a spherical polygon with great-circle edges.
tangent_to_cartesian function East and north components (u, v) to the 3-D tangent vector u ê + v n̂.
to_pixel function Map coordinates (x, y) to fractional pixel (row, col), centres at integers.
unit_to_lonlat function Longitude and latitude of vectors on (or off) the unit sphere.
window function The row and column slices of the pixels that cover bounds.

functax.quad

Name Kind What it does
CurveRule class A rule on a curve L: ∫_L c dℓ ≈ ∑ₖ Δsₖ c(xₖ), with the unit normal nₖ.
Rule class A quadrature rule as data: nodes xₙ and weights wₙ, ∫ g dx ≈ ∑ₙ wₙ g(xₙ).
SphereRule class A rule on a sphere of radius a: ∫_{S²} g dA ≈ ∑_q w_q g(u_q).
cell_area function The cell-area rule of a grid: ∫ g dA ≈ ∑ₖ |Cₖ| g(xₖ) over its cells Cₖ.
clenshaw_curtis function The n-point Clenshaw–Curtis rule on [a, b], at the Chebyshev extreme points.
gauss_legendre function The n-point Gauss–Legendre rule on an interval [a, b].
polyline function A rule along a polyline: n nodes per segment, arc-length weights and normals.
simpson function The composite Simpson rule on given nodes, as scipy.integrate.simpson.
sphere_fibonacci function The Fibonacci rule: n near-uniform points of equal weight 4πa²/n.
sphere_gauss_legendre function The Gauss–Legendre × uniform-longitude rule on the sphere, exact to a degree.
sphere_healpix function The HEALPix rule: 12 N_side² pixel centres of equal weight 4πa²/Q.
sphere_latlon function The cell-centred lon/lat rule: equiangular cells weighted by their exact areas.
trapezoid function The composite trapezoid rule on given nodes, uniform or not.

functax.transform

Name Kind What it does
ChebyshevTransform1D class The forward and inverse Chebyshev transform on N Chebyshev nodes.
ChebyshevTransform2D class The tensor-product Chebyshev transform on an (N_y, N_x) grid of nodes.
SphericalHarmonicTransform class Dense, differentiable spherical-harmonic analysis and synthesis on a grid.
nonuniform_irfft function A truncated real Fourier series evaluated at points of [0, 1)^d.
nonuniform_rfft function The truncated Fourier coefficients of a field sampled at points of [0, 1)^d.

functax.basis.polynomial

Name Kind What it does
associated_legendre function The associated Legendre functions P_l^m(t) for 0 ≤ m ≤ l ≤ l_max.
associated_legendre_indices function The (l, m) of each column of associated_legendre.
legendre_polynomials function The Legendre polynomials P₀(t), …, P_{l_max}(t).
legendre_series function The Legendre series f(x) = ∑ₗ cₗ Pₗ(x), l = 0, …, L, evaluated elementwise.