Skip to content

API Reference

Everything listed in integrix.__all__ is importable from the top level, and each area of the library is a public module that re-exports its private implementation:

import integrix as ix

ix.IntegrixError  # the base of every integrix error
ix.rule.integrate  # weights against samples
ix.scan.cumulative  # running integrals

The capability index lists every public name on one page, with a one-line summary each, together with the public API of JAX, Equinox, diffrax, lineax, optimistix, einx, functax and gaussx.

Modules

Module Contents
Adaptive quadrature GaussKronrod, TanhSinh, Romberg and cumulative_adaptive: integrals to a tolerance under jit, with an error estimate (Wave 3)
Adjoints Checkpointed and checkpointed_scan, Truncated and truncated_scan, to_diffrax_adjoint (Wave 2)
Expectations monte_carlo, qmc (Sobol, Halton) and importance, each an Expectation with a standard error (Wave 4)
Marches the diffrax-solver steppers (Euler, Heun, SSP-RK2/3, RK4, SSP-RK(10,4), IMEX-SSP2, AB3), AbstractStepper and run for AB2, leapfrog-RAF and split-explicit, their step functions, and the matrix-free IMEX solver, its step control and the CFL bound (Wave 1)
Green's functions PoissonGreen, ScreenedPoissonGreen, HeatGreen and green_operator: free-space kernels with cell averages on the diagonal
Integral operators IntegralOperator and convolution: a kernel summed against a rule at any targets, with its adjoints and a lineax view; solve_second_kind for Fredholm equations of the second kind; VolterraOperator and causal_quadrature for causal operators
Rules Integral, integrate, weighted_mean: weights against samples over any axes (Wave 0)
Scans cumulative: running integrals, forward and reverse, by associative scan (Wave 0)
Type aliases Axes, RuleLike
Exceptions IntegrixError, ValidationError, ConvergenceError

Package overview

Integration for JAX: rules, scans, marches, adaptivity, adjoints and expectations.

integrix computes one integral, I = ∫ f dμ, in three ways: a rule sums weights against samples, a scan builds the running integral, and a march steps an integrand that depends on the solution. Each operation lives in its own public module, and each module appears with the first feature that needs it.

Examples:

>>> import integrix
>>> major, minor, patch = integrix.__version__.split(".")[:3]
>>> all(part.isdigit() for part in (major, minor, patch))
True