Capability index¶
Every public name in integrix (91 of them), each listed once at
its public home and grouped by the module that defines it, with the
first sentence of its docstring; then the public API of jax, equinox, diffrax, lineax, optimistix, einx, functax, gaussx-infer. 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 uv run poe capabilities
after changing a public API (tests/test_capabilities.py checks it is
current).
integrix¶
| Name | Kind | What it does |
|---|---|---|
ConvergenceError |
class | Raised when an iterative solve fails to converge. |
IntegrixError |
class | Base class for every exception raised by integrix. |
ValidationError |
class | Raised when an argument fails validation. |
integrix.adapt¶
The running integral of an integrand to each node, adaptively per interval. (integrix._src.adapt._cumulative)¶
| Name | Kind | What it does |
|---|---|---|
cumulative_adaptive |
function | ∫ from x₀ to each node xₖ of f, each interval integrated adaptively. |
Adaptive Gauss–Kronrod quadrature on an interval, under jit, with a custom JVP. (integrix._src.adapt._gauss_kronrod)¶
| Name | Kind | What it does |
|---|---|---|
GaussKronrod |
class | Adaptive Gauss–Kronrod quadrature to a tolerance, with an error estimate. |
Romberg integration: trapezoid estimates extrapolated by Richardson. (integrix._src.adapt._romberg)¶
| Name | Kind | What it does |
|---|---|---|
Romberg |
class | Romberg integration of a smooth integrand on a finite interval. |
Tanh–sinh quadrature: endpoint singularities and infinite limits. (integrix._src.adapt._tanh_sinh)¶
| Name | Kind | What it does |
|---|---|---|
TanhSinh |
class | Tanh–sinh (double-exponential) quadrature, for singular ends and infinite limits. |
integrix.adjoint¶
Checkpointed backward sweeps: Checkpointed and checkpointed_scan. (integrix._src.adjoint._checkpoint)¶
| Name | Kind | What it does |
|---|---|---|
Checkpointed |
class | The checkpointed adjoint: store every k-th state, recompute between them. |
checkpointed_scan |
function | jax.lax.scan that stores the carry only every k steps for reverse mode. |
Resolve an adjoint spec, pipekit-cycle's or diffrax's, to a diffrax adjoint. (integrix._src.adjoint._diffrax)¶
| Name | Kind | What it does |
|---|---|---|
to_diffrax_adjoint |
function | Map an adjoint spec onto a diffrax.AbstractAdjoint. |
The scan that runs a loop of one's own under an adjoint: scan_for. (integrix._src.adjoint._scan_for)¶
| Name | Kind | What it does |
|---|---|---|
scan_for |
function | The scan that runs a loop under an adjoint. |
Truncated backpropagation through time: Truncated and truncated_scan. (integrix._src.adjoint._truncated)¶
| Name | Kind | What it does |
|---|---|---|
Truncated |
class | The truncated adjoint: gradients flow through the carry of the last k steps. |
truncated_scan |
function | jax.lax.scan with gradients truncated to the trailing k steps. |
integrix.expect¶
Bayesian quadrature: an integral with a posterior standard deviation. (integrix._src.expect._bayes_quad)¶
| Name | Kind | What it does |
|---|---|---|
KernelLike |
class | A kernel: anything with pairwise(x, x′) returning k(x, x′). |
bayes_quad |
function | Bayesian quadrature: I = ∫ g dΠ with its posterior mean and standard deviation. |
initial_error |
function | The initial error ∬ k(x, x′) dΠ(x) dΠ(x′), the variance of I before any node. |
kernel_mean |
function | Kernel means zₙ = ∫ k(x, xₙ) dΠ(x), in closed form when the kernel has one. |
rule_error |
function | The worst-case error of a rule over the unit ball of the kernel's RKHS. |
Importance-weight diagnostics: the effective sample size and Pareto smoothing. (integrix._src.expect._diagnostics)¶
| Name | Kind | What it does |
|---|---|---|
effective_sample_size |
function | ESS = (∑ₛ wₛ)² / ∑ₛ wₛ² from log weights, along the last axis. |
pareto_smoothed_log_weights |
function | Pareto-smoothed log importance weights and the tail shape k̂. |
Expectations 𝔼[f] with a standard error: from draws, points or a proposal. (integrix._src.expect._expectation)¶
| Name | Kind | What it does |
|---|---|---|
Expectation |
class | An estimate of 𝔼[f] with its standard error. |
importance |
function | Self-normalised importance sampling: Î = ∑ₛ wₛ f(xₛ) / ∑ₛ wₛ, xₛ ~ q. |
monte_carlo |
function | Plain Monte Carlo: Î = (1/S) ∑ₛ f(xₛ), with standard error σ̂/√S. |
qmc |
function | Randomised quasi-Monte Carlo over [0, 1)^D, with an error from random shifts. |
Kernel expectations Ψ₀, Ψ₁ and Ψ₂ under a Gaussian measure. (integrix._src.expect._kernel_expectations)¶
| Name | Kind | What it does |
|---|---|---|
AnalyticalPsiStatistics |
class | Protocol for kernels with closed-form Ψ statistics. |
compute_psi_statistics |
function | Compute Ψ statistics, dispatching to analytical or numerical. |
kernel_expectations |
function | Kernel expectations Ψ₀, Ψ₁ and Ψ₂ for an uncertain input. |
Log-space expectations: Gauss–Hermite in log Q and Simpson in log q. (integrix._src.expect._log)¶
| Name | Kind | What it does |
|---|---|---|
log_gauss_hermite |
function | log 𝔼[f(Q)] for a lognormal Q, by Gauss–Hermite quadrature in log Q. |
log_simpson |
function | log ∫ₐᵇ f(q) dq by composite Simpson on a uniform grid in u = log q. |
Probability measures Π to integrate a kernel against: boxes, a sphere, samples. (integrix._src.expect._measures)¶
| Name | Kind | What it does |
|---|---|---|
Box |
class | The uniform probability measure on a box [l, u] ⊂ ℝᴰ. |
Empirical |
class | A weighted empirical measure: Π = ∑ₛ wₛ δ(x − xₛ) / ∑ₛ wₛ. |
Sphere |
class | The uniform probability measure on the sphere of radius R in ℝ³. |
WeightedBox |
class | A probability measure on a box with a density, normalised over the box. |
Resampling: ancestor indices that make a weighted cloud equally weighted. (integrix._src.expect._resampling)¶
| Name | Kind | What it does |
|---|---|---|
resample_conditional |
function | Conditional resampling: ancestor keep at slot, the rest drawn. |
resample_multinomial |
function | Multinomial resampling: M i.i.d. draws aᵐ ~ Cat(W), W = softmax(log w). |
resample_residual |
function | Residual resampling: ⌊M Wₖ⌋ copies of each k, the rest multinomial. |
resample_stratified |
function | Stratified resampling: aᵐ = F⁻¹((m − 1 + Uᵐ)/M), one Uᵐ per stratum. |
resample_systematic |
function | Systematic resampling: aᵐ = F⁻¹((m − 1 + U)/M) with one U uniform on [0, 1). |
integrix.green¶
| Name | Kind | What it does |
|---|---|---|
HeatGreen |
class | The heat kernel, the Green's function of ∂_t − K∇² at time t. |
PoissonGreen |
class | The free-space Green's function of −∇² in two or three dimensions. |
ScreenedPoissonGreen |
class | The free-space Green's function of κ² − ∇² in two or three dimensions. |
green_operator |
function | The Green's operator u(xᵢ) = ∑ⱼ G(xᵢ, sⱼ) wⱼ fⱼ, cell averages on the diagonal. |
integrix.march¶
Explicit Runge–Kutta steppers: diffrax solvers and their pure step functions. (integrix._src.march._erk)¶
| Name | Kind | What it does |
|---|---|---|
ForwardEulerDfx |
class | Forward Euler as a diffrax solver: yₙ₊₁ = yₙ + h F(tₙ, yₙ). |
RK2Heun |
class | Heun's method (RK2), with an embedded forward-Euler error estimate. |
RK3SSP |
class | Third-order strong-stability-preserving Runge–Kutta (Shu–Osher). |
RK4Classic |
class | The classical fourth-order Runge–Kutta method, fixed steps only. |
SSP_RK104 |
class | Ketcheson's ten-stage, fourth-order SSP Runge–Kutta, fixed steps only. |
SSP_RK2 |
class | Second-order SSP Runge–Kutta, the same scheme as RK2Heun. |
erk_step |
function | One step of an explicit Runge–Kutta solver, unrolled from its tableau. |
euler_step |
function | One forward-Euler step: yₙ₊₁ = yₙ + h f(yₙ). |
heun_step |
function | One Heun (RK2) step, order 2, SSP with C = 1. |
rk3_ssp_step |
function | One third-order SSP Runge–Kutta step in Shu–Osher form, C = 1. |
rk4_step |
function | One classical fourth-order Runge–Kutta step. |
A forward model that one diffrax solve computes. (integrix._src.march._forward_model)¶
| Name | Kind | What it does |
|---|---|---|
DiffraxForwardModel |
class | A forward model M: x(t₀) ↦ x(t₁) that one diffrax.diffeqsolve computes. |
The IMEX-SSP2(2,2,2) stepper: a diffrax solver and its pure step function. (integrix._src.march._imex)¶
| Name | Kind | What it does |
|---|---|---|
IMEX_SSP2 |
class | IMEX-SSP2(2,2,2) for a diffrax.MultiTerm of an explicit and an implicit term. |
imex_ssp2_step |
function | One IMEX-SSP2(2,2,2) step, with the caller's implicit solve. |
A matrix-free IMEX solver, its step-size control, and the explicit CFL bound. (integrix._src.march._imex_control)¶
| Name | Kind | What it does |
|---|---|---|
imex_solver |
function | A KenCarp3 IMEX solver whose implicit stage is matrix-free. |
imex_stepsize_controller |
function | An adaptive PID step-size controller for an IMEX solve. |
stable_step |
function | The largest stable forward-Euler step for advection and diffusion together. |
AbstractStepper and run: a fixed-step loop for schemes that carry history. (integrix._src.march._loop)¶
| Name | Kind | What it does |
|---|---|---|
AbstractStepper |
class | A fixed-step scheme whose history lives in the loop carry. |
run |
function | March y₀ through n_steps constant steps of h from t₀. |
Multistep steppers: Adams–Bashforth 2 and 3, and leapfrog with an RA filter. (integrix._src.march._multistep)¶
| Name | Kind | What it does |
|---|---|---|
AB2Solver |
class | Second-order Adams–Bashforth, run by integrix.march.run. |
AB3Solver |
class | Third-order Adams–Bashforth as a diffrax solver, with an SSP-RK3 start. |
LeapfrogRAFSolver |
class | Leapfrog with a Robert–Asselin filter, run by integrix.march.run. |
ab2_step |
function | One second-order Adams–Bashforth step. |
ab3_step |
function | One third-order Adams–Bashforth step. |
leapfrog_raf_step |
function | One leapfrog step with a Robert–Asselin filter on the middle level. |
ODEFilter: a probabilistic ODE solver, a Gaussian filter under a Wiener prior. (integrix._src.march._ode_filter)¶
| Name | Kind | What it does |
|---|---|---|
ODEFilter |
class | A probabilistic ODE solver: a Gaussian filter under an integrated Wiener prior. |
ODEFilterState |
class | The Gaussian over ξ = [x; ẋ; …; x⁽q⁾] at one step, or at every step. |
Samples of a forcing or a control, read as a diffrax path. (integrix._src.march._sampled_path)¶
| Name | Kind | What it does |
|---|---|---|
SampledPath |
class | û(t), a functax fit of samples (t_k, u_k), read as a diffrax path. |
Semi-Lagrangian advection: departure points by integration, then a read-out. (integrix._src.march._semi_lagrangian)¶
| Name | Kind | What it does |
|---|---|---|
SemiLagrangianSolver |
class | Semi-Lagrangian advection as a diffrax solver. |
SemiLagrangianTerm |
class | The characteristic equation Ẋ = u(t, X), as a diffrax term. |
departure_points |
function | The points x_d that the flow carries to the nodes x over one step. |
semi_lagrangian_step |
function | One semi-Lagrangian step: the old field read at the departure points. |
Split-explicit stepping: a fast mode subcycled inside each slow step. (integrix._src.march._split_explicit)¶
| Name | Kind | What it does |
|---|---|---|
SplitExplicitRKSolver |
class | Split-explicit stepping as an AbstractStepper, for integrix.march.run. |
SplitExplicitTerms |
class | The vector fields of a split-explicit model, passed to run as rhs. |
split_explicit_step |
function | One split-explicit barotropic/baroclinic step. |
The number and the lengths of the steps of a fixed-step run over a span. (integrix._src.march._steps)¶
| Name | Kind | What it does |
|---|---|---|
count_steps |
function | K = ⌈T/Δt⌉, with a quotient within 10⁻⁹ K of a whole number taken as it. |
step_lengths |
function | The K step lengths: Δt, and T − (K − 1) Δt for the last, on the host. |
taylor_coefficients: an initial-value problem's first q time derivatives at t₀. (integrix._src.march._taylor)¶
| Name | Kind | What it does |
|---|---|---|
taylor_coefficients |
function | The state and its first q time derivatives at t₀, by Taylor mode. |
integrix.operator¶
Fredholm equations of the second kind, u − λ𝒦u = f, by the quadrature method. (integrix._src.operator._fredholm)¶
| Name | Kind | What it does |
|---|---|---|
SecondKindSolution |
class | The solution of u − λ𝒦u = f at a rule's nodes, and its Nyström interpolant. |
solve_second_kind |
function | Solve u − λ𝒦u = f by the quadrature method; .at(x) is the Nyström interpolant. |
The discretised integral operator (𝒦f)(xᵢ) ≈ ∑ⱼ k(xᵢ, sⱼ) wⱼ f(sⱼ) and its FFT form. (integrix._src.operator._integral)¶
| Name | Kind | What it does |
|---|---|---|
IntegralOperator |
class | The discretised integral operator, applied without forming K. |
convolution |
function | 𝒦 on a regular grid by FFT, for a translation-invariant kernel. |
Volterra operators, (𝒱f)(t) = ∫ k(t, s) f(s) ds up to the present. (integrix._src.operator._volterra)¶
| Name | Kind | What it does |
|---|---|---|
VolterraOperator |
class | The causal integral operator with an exponential kernel, as a one-state scan. |
causal_quadrature |
function | (𝒱f)(tₖ) = ∫_{t₀}^{tₖ} k(tₖ, s) f(s) ds for any kernel, by the trapezoid rule. |
integrix.rule¶
Integrate in log space: log ∑ₙ wₙ fₙ from log fₙ, without leaving log space. (integrix._src.rule._log)¶
| Name | Kind | What it does |
|---|---|---|
log_integrate |
function | log I from log f: the log-sum-exp twin of integrate. |
Integrate values or an integrand against quadrature weights, over any axes. (integrix._src.rule._rule)¶
| Name | Kind | What it does |
|---|---|---|
Integral |
class | The result of an integral: its value, an error estimate and diagnostics. |
integrate |
function | Integrate values, or an integrand, against a rule's weights. |
weighted_mean |
function | The mean of the values under a weight function, with one rule for both sums. |
integrix.scan¶
| Name | Kind | What it does |
|---|---|---|
cumulative |
function | The running trapezoid integral of samples along one axis. |
Listed at jax 0.12.0.1, equinox 0.13.8, diffrax 0.7.2, lineax 0.1.1, optimistix 0.1.0, einx 0.4.3, functax 0.0.15, gaussx-infer 0.10.0.
Upstream: jax¶
transformations (jit, vmap, grad, associative_scan) and the array type
jax¶
| Name | Kind | What it does |
|---|---|---|
Array |
class | Array base class for JAX |
CompilerEffortLevel |
class | Effort level enumeration for XLA. |
Device |
class | Re-exported from jaxlib. |
Inline |
class | Enumeration specifying inlining behavior for nested jitted functions. |
NamedSharding |
class | A :class:NamedSharding expresses sharding using named axes. |
P |
class | Tuple describing how to partition an array across a mesh of devices. |
Ref |
class | Mutable array reference. |
ShapeDtypeStruct |
class | A container for the shape, dtype, and other static attributes of an array. |
Shard |
class | A single data shard of an Array. |
ad |
constant | Re-exported from types. |
allow_f16_reductions |
function | Context manager for jax_allow_f16_reductions config option. |
array_garbage_collection_guard |
function | Context manager for jax_array_garbage_collection_guard config option. |
auto_pcast |
function | Context manager for jax_auto_pcast config option. |
block_until_ready |
function | Tries to call a block_until_ready method on pytree leaves. |
check_tracer_leaks |
function | Context manager for jax_check_tracer_leaks config option. |
checking_leaks |
function | Re-exported from functools. |
checkpoint |
function | Make fun recompute internal linearization points when differentiated. |
checkpoint_policies |
constant | Re-exported from types. |
clear_caches |
function | Clear all compilation and staging caches. |
closure_convert |
function | Closure conversion utility, for use with higher-order custom derivatives. |
config |
constant | <jax._src.config.Config object> |
copy_to_host_async |
function | Tries to call a copy_to_host_async method on pytree leaves. |
custom_gradient |
function | Convenience function for defining custom VJP rules (aka custom gradients). |
custom_jvp |
class | Set up a JAX-transformable function for a custom JVP rule definition. |
custom_vjp |
class | Set up a JAX-transformable function for a custom VJP rule definition. |
debug_infs |
function | Context manager for jax_debug_infs config option. |
debug_key_reuse |
function | Context manager for jax_debug_key_reuse config option. |
debug_nans |
function | Context manager for jax_debug_nans config option. |
default_backend |
function | Returns the platform name of the default XLA backend. |
default_device |
function | Context manager for jax_default_device config option. |
default_matmul_precision |
function | Context manager for jax_default_matmul_precision config option. |
default_prng_impl |
function | Context manager for jax_default_prng_impl config option. |
device_count |
function | Returns the total number of devices. |
device_get |
function | Transfer x to host. |
device_put |
function | Transfers x to device. |
devices |
function | Returns a list of all devices for a given backend. |
disable_jit |
function | Context manager that disables :py:func:jit behavior under its dynamic context. |
ds |
function | Constructs a Slice from a start index and a size. |
effects_barrier |
function | Waits until existing functions have completed any side-effects. |
empty_ref |
function | |
enable_checks |
function | Context manager for jax_enable_checks config option. |
enable_custom_prng |
function | Context manager for jax_enable_custom_prng config option (transient). |
enable_x64 |
function | Context manager for jax_enable_x64 config option. |
ensure_compile_time_eval |
function | Context manager to ensure evaluation at trace/compile time (or error). |
eval_shape |
function | Compute the shape/dtype of fun without any FLOPs. |
explain_cache_misses |
function | Context manager for jax_explain_cache_misses config option. |
float0 |
constant | Re-exported from numpy. |
free_ref |
function | Invalidate a given reference. |
freeze |
function | Invalidate a given reference and return its final value. |
fwd_and_bwd |
function | Creates functions fwd and bwd corresponding to the forward and backward pass of a given function fun. |
get_abstract_mesh |
function | |
get_mesh |
function | |
grad |
function | Creates a function that evaluates the gradient of fun. |
hessian |
function | Hessian of fun as a dense array. |
host_count |
function | |
host_id |
function | |
host_ids |
function | |
jacfwd |
function | Jacobian of fun evaluated column-by-column using forward-mode AD. |
jacobian |
function | Alias of :func:jax.jacrev. |
jacrev |
function | Jacobian of fun evaluated row-by-row using reverse-mode AD. |
jax2tf_associative_scan_reductions |
function | Context manager for jax2tf_associative_scan_reductions config option. |
jit |
function | Sets up fun for just-in-time compilation with XLA. |
jvp |
function | Computes a (forward-mode) Jacobian-vector product of fun. |
legacy_prng_key |
function | Context manager for jax_legacy_prng_key config option. |
linear_transpose |
function | Transpose a function that is promised to be linear. |
linearize |
function | Produces a linear approximation to fun using :py:func:jvp and partial eval. |
live_arrays |
function | Return all live arrays in the backend for platform. |
local_device_count |
function | Returns the number of devices addressable by this process. |
local_devices |
function | Re-exported from jaxlib. |
log_compiles |
function | Context manager for jax_log_compiles config option. |
make_array_from_callback |
function | Returns a jax.Array via data fetched from data_callback. |
make_array_from_process_local_data |
function | Creates distributed tensor using the data available in process. |
make_array_from_single_device_arrays |
function | Returns a jax.Array from a sequence of jax.Array\s each on a single device. |
make_jaxpr |
function | Create a function that returns the jaxpr of fun given example args. |
make_mesh |
function | Creates an efficient mesh with the shape and axis names specified. |
make_user_context |
function | Creates a jax.jit cache sensitive context. |
memory |
constant | Re-exported from types. |
named_call |
function | Adds a user specified name to a function when staging out JAX computations. |
named_scope |
function | A context manager that adds a user specified name to the JAX name stack. |
new_ref |
function | Create a mutable array reference with initial value init_val. |
no_execution |
function | Context manager for jax_no_execution config option. |
no_tracing |
function | Context manager for jax_no_tracing config option. |
numpy_dtype_promotion |
function | Context manager for jax_numpy_dtype_promotion config option. |
numpy_rank_promotion |
function | Context manager for jax_numpy_rank_promotion config option. |
pmap |
function | Old way of doing parallel map. |
print_environment_info |
function | Returns a string containing local environment & JAX installation information. |
process_count |
function | Re-exported from jaxlib. |
process_index |
function | Returns the integer process index of this process. |
process_indices |
function | Returns the list of all JAX process indices associated with the backend. |
pure_callback |
function | Calls a pure Python callback. |
remat |
function | Alias of :func:jax.checkpoint. |
remove_size_one_mesh_axis_from_type |
function | Context manager for jax_remove_size_one_mesh_axis_from_type config option. |
reshard |
function | |
set_mesh |
class | Sets a concrete mesh in a thread-local context. |
shard_map |
function | Map a function over shards of data using a mesh of devices. |
smap |
function | Single axis shard_map that maps a function f one axis at a time. |
softmax_custom_jvp |
function | Context manager for jax_softmax_custom_jvp config option (transient). |
thread_guard |
function | Context manager for jax_thread_guard config option. |
threefry_partitionable |
function | Context manager for jax_threefry_partitionable config option (transient). |
transfer_guard |
function | A contextmanager to control the transfer guard level for all transfers. |
transfer_guard_device_to_device |
function | Context manager for jax_transfer_guard_device_to_device config option. |
transfer_guard_device_to_host |
function | Context manager for jax_transfer_guard_device_to_host config option. |
transfer_guard_host_to_device |
function | Context manager for jax_transfer_guard_host_to_device config option. |
typeof |
function | Return the JAX type (i.e. :class:AbstractValue) of the input. |
use_abstract_mesh |
class | Sets a abstract mesh in a thread-local context. |
value_and_grad |
function | Create a function that evaluates both fun and the gradient of fun. |
vjp |
function | Compute a (reverse-mode) vector-Jacobian product of fun. |
vmap |
function | Vectorizing map. |
Upstream: equinox¶
modules as pytrees, filtered transformations and static fields
equinox¶
| Name | Kind | What it does |
|---|---|---|
AbstractClassVar |
class | Used to mark an abstract class attribute, along with its type. |
AbstractVar |
class | Used to mark an abstract instance attribute, along with its type. |
Enumeration |
class | JAX-compatible enums. |
EquinoxRuntimeError |
class | Re-exported from builtins. |
EquinoxTracetimeError |
class | Unspecified run-time error. |
Module |
class | Base class. |
Partial |
class | Like functools.partial, but treats the wrapped function, and partially-applied args and kwargs, as a PyTree. |
StrictConfig |
function | |
apply_updates |
function | A jax.tree_util.tree_map-broadcasted version of python if update is None: return model else: return model + update |
branched_error_if |
function | As equinox.error_if, but will raise one of several msgs depending on the value of index. |
clear_caches |
function | Clears internal Equinox caches. |
combine |
function | Combines multiple PyTrees into one PyTree, by replacing None leaves. |
default_deserialise_filter_spec |
function | Default filter specification for deserialising saved data. |
default_serialise_filter_spec |
function | Default filter specification for serialising a leaf. |
error_if |
function | Throws an error based on runtime values. |
field |
function | Equinox supports extra functionality on top of the default dataclasses. |
filter |
function | Filters out the leaves of a PyTree not satisfying a condition. |
filter_checkpoint |
function | Filtered version of jax.checkpoint. |
filter_closure_convert |
function | As jax.closure_convert, but works on functions accepting and returning arbitrary PyTree objects. |
filter_custom_jvp |
class | Filtered version of jax.custom_jvp. |
filter_custom_vjp |
class | As jax.custom_vjp, but with a nicer interface. |
filter_eval_shape |
function | As jax.eval_shape, but allows any Python object as inputs and outputs. |
filter_grad |
function | Creates a function that computes the gradient of fun. |
filter_hessian |
function | Computes the Hessian of fun. |
filter_jacfwd |
function | Computes the Jacobian of fun, evaluated using forward-mode AD. |
filter_jacrev |
function | Computes the Jacobian of fun, evaluated using reverse-mode AD. |
filter_jit |
function | An easier-to-use version of jax.jit. |
filter_jvp |
function | Like jax.jvp, but accepts arbitrary PyTrees. (Not just JAXable types.) |
filter_make_jaxpr |
function | As jax.make_jaxpr, but accepts arbitrary PyTrees as input and output. |
filter_pmap |
function | !!! warning |
filter_pure_callback |
function | Calls a Python function inside a JIT region. |
filter_shard |
function | Filtered transform combining jax.lax.with_sharding_constraint and jax.device_put. |
filter_value_and_grad |
function | Creates a function that evaluates both fun and the gradient of fun. |
filter_vjp |
function | Like jax.vjp, but accepts arbitrary PyTrees. (Not just JAXable types.) |
filter_vmap |
function | Vectorises a function. |
if_array |
class | Returns a callable that returns the specified integer if evaluated on an array. |
is_array |
function | Returns True if element is a JAX array or NumPy array. |
is_array_like |
function | Returns True if element is a JAX array, a NumPy array, or a Python float/complex/bool/int. |
is_inexact_array |
function | Returns True if element is an inexact (i.e. floating or complex) JAX/NumPy array. |
is_inexact_array_like |
function | Returns True if element is an inexact JAX array, an inexact NumPy array, or a Python float or complex. |
module_update_wrapper |
function | Like functools.update_wrapper (or its better-known cousin, functools.wraps), but acts on equinox.Modules, and does not modify its input (it returns the... |
partition |
function | Splits a PyTree into two pieces. |
static_field |
function | |
tree_at |
function | Modifies a leaf or subtree of a PyTree. (A bit like using .at[].set() on a JAX array.) |
tree_check |
function | Checks if the PyTree has no self-references, and if all non-leaf nodes are unique Python objects. (For example something like x = [1]; y = [x, x] would fai... |
tree_deserialise_leaves |
function | Load the leaves of a PyTree from a file. |
tree_equal |
function | Returns True if all input PyTrees are equal. |
tree_flatten_one_level |
function | Returns the immediate subnodes of a PyTree node. |
tree_inference |
function | Convenience function for setting all inference attributes. |
tree_pformat |
function | Pretty-formats a PyTree as a string, whilst abbreviating JAX arrays. |
tree_pprint |
function | Pretty-prints a PyTree as a string, whilst abbreviating JAX arrays. |
tree_serialise_leaves |
function | Save the leaves of a PyTree to file. |
Upstream: diffrax¶
diffeqsolve, the solver protocol the steppers subclass, controllers and adjoints
diffrax¶
| Name | Kind | What it does |
|---|---|---|
ALIGN |
class | The Adaptive Langevin via Interpolated Gradients and Noise method designed by James Foster. |
AbstractAdaptiveSolver |
class | Indicates that this solver provides error estimates, and that as such it may be used with an adaptive step size controller. |
AbstractAdaptiveStepSizeController |
class | Indicates an adaptive step size controller. |
AbstractAdjoint |
class | Abstract base class for all adjoint methods. |
AbstractBrownianIncrement |
class | Abstract base class for all Brownian increments. |
AbstractBrownianPath |
class | Abstract base class for all Brownian paths. |
AbstractDIRK |
class | Abstract base class for all Diagonal Implicit Runge--Kutta solvers. |
AbstractDiscreteTerminatingEvent |
class | AbstractDiscreteTerminatingEvent() |
AbstractERK |
class | Abstract base class for all Explicit Runge--Kutta solvers. |
AbstractESDIRK |
class | Abstract base class for all Explicit Singular Diagonal Implicit Runge--Kutta solvers. |
AbstractFosterLangevinSRK |
class | Abstract class for Stochastic Runge Kutta methods specifically designed for Underdamped Langevin Diffusion of the form |
AbstractGlobalInterpolation |
class | AbstractGlobalInterpolation() |
AbstractImplicitSolver |
class | Indicates that this is an implicit differential equation solver. |
AbstractItoSolver |
class | Indicates that when used as an SDE solver that this solver will converge to the Itô solution. |
AbstractLocalInterpolation |
class | AbstractLocalInterpolation() |
AbstractPath |
class | Abstract base class for all paths. |
AbstractProgressMeter |
class | Progress meters used to indicate how far along a solve is. |
AbstractRungeKutta |
class | Abstract base class for all Runge--Kutta solvers. (Other than fully-implicit Runge--Kutta methods, which have a different computational structure.) |
AbstractSDIRK |
class | Abstract base class for all Singular Diagonal Implict Runge--Kutta solvers. |
AbstractSRK |
class | A general Stochastic Runge-Kutta method. |
AbstractSolver |
class | Abstract base class for all differential equation solvers. |
AbstractSpaceTimeLevyArea |
class | Abstract base class for all Space Time Levy Areas. |
AbstractSpaceTimeTimeLevyArea |
class | Abstract base class for all Space Time Time Levy Areas. |
AbstractStepSizeController |
class | Abstract base class for all step size controllers. |
AbstractStratonovichSolver |
class | Indicates that when used as an SDE solver that this solver will converge to the Stratonovich solution. |
AbstractTerm |
class | Abstract base class for all terms. |
AbstractWrappedSolver |
class | Wraps another solver "transparently", in the sense that all isinstance checks will be forwarded on to the wrapped solver, e.g. when testing whether the sol... |
BacksolveAdjoint |
class | Backpropagate through diffrax.diffeqsolve by solving the continuous adjoint equations backwards-in-time. |
Bosh3 |
class | Bogacki--Shampine's 3/2 method. |
BrownianIncrement |
class | Pytree containing the dt time increment and W the Brownian motion. |
ButcherTableau |
class | The Butcher tableau for an explicit or diagonal Runge--Kutta method. |
CalculateJacobian |
class | An enumeration of possible ways a Runga--Kutta method may wish to calculate a Jacobian. |
ClipStepSizeController |
class | Wraps an existing step controller with three pieces of functionality: |
ConstantStepSize |
class | Use a constant step size, equal to the dt0 argument of diffrax.diffeqsolve. |
ControlTerm |
class | A term representing the general case of \(f(t, y(t), args) \mathrm{d}x(t)\), in which the vector field (\(f\)) - control (\(\mathrm{d}x\)) interaction is a matrix-... |
CubicInterpolation |
class | Piecewise cubic spline interpolation over the interval \([t_0, t_1]\). |
DenseInterpolation |
class | DenseInterpolation(ts: jaxtyping.Real[Array, 'times'], ts_size: Union[jaxtyping.Int[Array, ''], jaxtyping.Int[ndarray, ''], numpy.number, int], infos: dict[s... |
DirectAdjoint |
class | A variant of diffrax.RecursiveCheckpointAdjoint that is also able to support forward-mode autodifferentiation, whilst being less computationally efficient.... |
DiscreteTerminatingEvent |
class | DiscreteTerminatingEvent(cond_fn: collections.abc.Callable[..., typing.Union[jaxtyping.Bool[Array, ''], jaxtyping.Bool[ndarray, ''], numpy.bool, numpy.number... |
Dopri5 |
class | Dormand-Prince's 5/4 method. |
Dopri8 |
class | Dormand--Prince's 8/7 method. |
Euler |
class | Euler's method. |
EulerHeun |
class | Euler-Heun method. |
Event |
class | Can be used to terminate the solve early if a condition, or one of multiple conditions, is triggered. |
ForwardMode |
class | Enables support for forward-mode automatic differentiation (like jax.jvp or jax.jacfwd) through diffrax.diffeqsolve. (As such this shouldn't really be... |
FourthOrderPolynomialInterpolation |
class | FourthOrderPolynomialInterpolation(*, t0: Union[jaxtyping.Real[Array, ''], jaxtyping.Real[ndarray, ''], numpy.number, int, float], t1: Union[jaxtyping.Real[A... |
GeneralShARK |
class | ShARK method for Stratonovich SDEs. |
HalfSolver |
class | Wraps another solver, trading cost in order to provide error estimates. (That is, it means the solver can be used with an adaptive step size controller, rega... |
Heun |
class | Heun's method. |
ImplicitAdjoint |
class | Backpropagate via the implicit function theorem. |
ImplicitEuler |
class | Implicit Euler method. |
ItoMilstein |
class | Milstein's method; Itô version. |
KenCarp3 |
class | Kennedy--Carpenter's 3/2 IMEX method. |
KenCarp4 |
class | Kennedy--Carpenter's 4/3 IMEX method. |
KenCarp5 |
class | Kennedy--Carpenter's 5/4 IMEX method. |
Kvaerno3 |
class | Kvaerno's 3/2 method. |
Kvaerno4 |
class | Kvaerno's 4/3 method. |
Kvaerno5 |
class | Kvaerno's 5/4 method. |
LeapfrogMidpoint |
class | Leapfrog/midpoint method. |
LinearInterpolation |
class | Linearly interpolates some data ys over the interval \([t_0, t_1]\) with knots at ts. |
LocalLinearInterpolation |
class | LocalLinearInterpolation(t0: Union[jaxtyping.Real[Array, ''], jaxtyping.Real[ndarray, ''], numpy.number, int, float], t1: Union[jaxtyping.Real[Array, ''], ja... |
Midpoint |
class | Midpoint method. |
MultiButcherTableau |
class | Wraps multiple diffrax.ButcherTableaus together. |
MultiTerm |
class | Accumulates multiple terms into a single term. |
NoProgressMeter |
class | Indicates that no progress meter should be displayed during the solve. |
ODETerm |
class | A term representing \(f(t, y(t), args) \mathrm{d}t\). |
PIDController |
class | Adapts the step size to produce a solution accurate to a given tolerance. |
QUICSORT |
class | The QUadrature Inspired and Contractive Shifted ODE with Runge-Kutta Three method by James Foster and Daire O'Kane. |
RESULTS |
class | An enumeration, with the following entries: |
Ralston |
class | Ralston's method. |
RecursiveCheckpointAdjoint |
class | Enables support for backpropagating through diffrax.diffeqsolve by differentiating the numerical solution directly. |
ReversibleHeun |
class | Reversible Heun method. |
SEA |
class | Shifted Euler method for SDEs with additive noise. |
SPaRK |
class | The Splitting Path Runge-Kutta method. |
SRA1 |
class | The SRA1 method for additive-noise SDEs. |
SaveAt |
class | Determines what to save as output from the differential equation solve. |
SemiImplicitEuler |
class | Semi-implicit Euler's method. |
ShARK |
class | Shifted Additive-noise Runge-Kutta method for additive SDEs. |
ShOULD |
class | The Shifted-ODE Runge-Kutta Three method designed by James Foster. |
Sil3 |
class | Whitaker--Kar's fast-slow IMEX method. |
SlowRK |
class | SLOW-RK method for commutative-noise Stratonovich SDEs. |
Solution |
class | The solution to a differential equation. |
SpaceTimeLevyArea |
class | Pytree containing the dt time increment, W the Brownian motion, and H the Space Time Levy Area. |
SpaceTimeTimeLevyArea |
class | Pytree containing the dt time increment, W the Brownian motion, H the Space Time Levy Area, and K the Space Time Time Levy Area. |
SteadyStateEvent |
class | SteadyStateEvent(rtol: float | None = None, atol: float | None = None, norm: collections.abc.Callable[[jaxtyping.PyTree[jax.Array]], typing.Union[jaxtyping.R... |
StepTo |
class | Make steps to just prespecified times. |
StochasticButcherTableau |
class | A Butcher Tableau for Stochastic Runge-Kutta methods. |
StratonovichMilstein |
class | Milstein's method; Stratonovich version. |
SubSaveAt |
class | Used for finer-grained control over what is saved. |
TextProgressMeter |
class | A text progress meter, printing out e.g.: 0.00% 2.00% 5.30% ... 100.00% |
ThirdOrderHermitePolynomialInterpolation |
class | ThirdOrderHermitePolynomialInterpolation(*, t0: Union[jaxtyping.Real[Array, ''], jaxtyping.Real[ndarray, ''], numpy.number, int, float], t1: Union[jaxtyping.... |
TqdmProgressMeter |
class | Uses tqdm to display a progress bar for the solve. |
Tsit5 |
class | Tsitouras' 5/4 method. |
UnderdampedLangevinDiffusionTerm |
class | Represents the diffusion term in the Underdamped Langevin Diffusion (ULD). |
UnderdampedLangevinDriftTerm |
class | Represents the drift term in the Underdamped Langevin Diffusion (ULD). |
UnsafeBrownianPath |
class | Brownian simulation that is only suitable for certain cases. |
VeryChord |
class | The Chord method of root finding. |
VirtualBrownianTree |
class | Brownian simulation that discretises the interval [t0, t1] to tolerance tol. |
WeaklyDiagonalControlTerm |
function | DEPRECATED. |
adjoint_rms_seminorm |
function | Defines an adjoint seminorm. |
backward_hermite_coefficients |
function | Interpolates the data with a cubic spline. |
citation |
function | Autogenerate a list of BibTeX references for the numerical methods being used. |
citation_rules |
constant | Re-exported from builtins. |
diffeqsolve |
function | Solves a differential equation. |
is_event |
function | |
is_okay |
function | |
is_successful |
function | |
linear_interpolation |
function | Fill in any missing values via linear interpolation. |
rectilinear_interpolation |
function | Rectilinearly interpolates the input. |
steady_state_event |
function | Create a condition function that terminates the solve once a steady state is achieved. |
with_stepsize_controller_tols |
function | Wraps a root finding class to indicate that it should use the same tolerances as were provided to an adaptive stepsize controller. |
Upstream: lineax¶
linear operators and solvers for implicit steps
lineax¶
| Name | Kind | What it does |
|---|---|---|
AbstractLinearOperator |
class | Abstract base class for all linear operators. |
AbstractLinearSolver |
class | Abstract base class for all linear solvers. |
AddLinearOperator |
class | A linear operator formed by adding two other linear operators together. |
AutoLinearSolver |
class | Automatically determines a good linear solver based on the structure of the operator. |
BiCGStab |
class | Biconjugate gradient stabilised method for linear systems. |
CG |
class | Conjugate gradient solver for linear systems. |
Cholesky |
class | Cholesky solver for linear systems. |
ComposedLinearOperator |
class | A linear operator formed by composing (matrix-multiplying) two other linear operators together. |
Diagonal |
class | Diagonal solver for linear systems. |
DiagonalLinearOperator |
class | A diagonal linear operator, e.g. for a diagonal matrix. |
DivLinearOperator |
class | A linear operator formed by dividing a linear operator by a scalar. |
FunctionLinearOperator |
class | Wraps a linear function fn: X -> Y into a linear operator. (So that self.mv(x) is defined by self.mv(x) == fn(x).) |
GMRES |
class | GMRES solver for linear systems. |
IdentityLinearOperator |
class | Represents the identity transformation X -> X, where each x in X is some PyTree of floating-point JAX arrays. |
JacobianLinearOperator |
class | Given a function fn: X -> Y, and a point x in X, then this defines the linear operator (also a function X -> Y) given by the Jacobian (d(fn)/dx)(x). |
LSMR |
class | LSMR solver for linear systems. |
LU |
class | LU solver for linear systems. |
MatrixLinearOperator |
class | Wraps a 2-dimensional JAX array into a linear operator. |
MulLinearOperator |
class | A linear operator formed by multiplying a linear operator by a scalar. |
NegLinearOperator |
class | A linear operator formed by computing the negative of a linear operator. |
Normal |
class | Wrapper for an inner solver of positive (semi)definite systems. |
NormalCG |
function | Deprecated helper function. |
PyTreeLinearOperator |
class | Represents a PyTree of floating-point JAX arrays as a linear operator. |
QR |
class | QR solver for linear systems. |
RESULTS |
class | An enumeration, with the following entries: |
SVD |
class | SVD solver for linear systems. |
Solution |
class | The solution to a linear solve. |
TaggedLinearOperator |
class | Wraps another linear operator and specifies that it has certain tags, e.g. representing symmetry. |
TangentLinearOperator |
class | Internal to lineax. |
Triangular |
class | Triangular solver for linear systems. |
Tridiagonal |
class | Tridiagonal solver for linear systems, uses the LAPACK/cusparse implementation of Gaussian elimination with partial pivotting (which increases stability). . |
TridiagonalLinearOperator |
class | As lineax.MatrixLinearOperator, but for specifically a tridiagonal matrix. |
conj |
function | Elementwise conjugate of a linear operator. |
diagonal |
function | Extracts the diagonal from a linear operator, and returns a vector. |
diagonal_tag |
constant | diagonal_tag |
has_unit_diagonal |
function | Returns whether an operator is marked as having unit diagonal. |
invert |
function | Returns a lineax.FunctionLinearOperator representing the (pseudo)inverse of operator. |
is_diagonal |
function | Returns whether an operator is marked as diagonal. |
is_lower_triangular |
function | Returns whether an operator is marked as lower triangular. |
is_negative_semidefinite |
function | Returns whether an operator is marked as negative semidefinite. |
is_positive_semidefinite |
function | Returns whether an operator is marked as positive semidefinite. |
is_symmetric |
function | Returns whether an operator is marked as symmetric. |
is_tridiagonal |
function | Returns whether an operator is marked as tridiagonal. |
is_upper_triangular |
function | Returns whether an operator is marked as upper triangular. |
linear_solve |
function | Solves a linear system. |
linearise |
function | Linearises a linear operator. |
lower_triangular_tag |
constant | lower_triangular_tag |
materialise |
function | Materialises a linear operator. |
negative_semidefinite_tag |
constant | negative_semidefinite_tag |
positive_semidefinite_tag |
constant | positive_semidefinite_tag |
symmetric_tag |
constant | symmetric_tag |
transpose_tags |
function | Lineax uses "tags" to declare that a particular linear operator exhibits some property, e.g. symmetry. |
transpose_tags_rules |
constant | Re-exported from builtins. |
tridiagonal |
function | Extracts the diagonal, lower diagonal, and upper diagonal, from a linear operator. |
tridiagonal_tag |
constant | tridiagonal_tag |
unit_diagonal_tag |
constant | unit_diagonal_tag |
upper_triangular_tag |
constant | upper_triangular_tag |
Upstream: optimistix¶
root finds and fixed points for nonlinear implicit steps
optimistix¶
| Name | Kind | What it does |
|---|---|---|
AbstractAdjoint |
class | The abstract base class of all adjoints. |
AbstractBFGS |
class | Abstract version of the BFGS (Broyden–Fletcher–Goldfarb–Shanno) minimisation algorithm. |
AbstractDFP |
class | Abstract version of the DFP (Davidon–Fletcher–Powell) minimisation algorithm. |
AbstractDescent |
class | The abstract base class for descents. |
AbstractFixedPointSolver |
class | Abstract base class for all fixed point solvers. |
AbstractGaussNewton |
class | Abstract base class for all Gauss-Newton type methods. |
AbstractGradientDescent |
class | The gradient descent method for unconstrained minimisation. |
AbstractIterativeSolver |
class | Abstract base class for all iterative solvers. |
AbstractLBFGS |
class | Abstract version of the L-BFGS (limited memory Broyden–Fletcher–Goldfarb–Shanno) solver. |
AbstractLeastSquaresSolver |
class | Abstract base class for all least squares solvers. |
AbstractMinimiser |
class | Abstract base class for all minimisers. |
AbstractQuasiNewton |
class | Abstract quasi-Newton minimisation algorithm. |
AbstractRootFinder |
class | Abstract base class for all root finders. |
AbstractSearch |
class | The abstract base class for all searches. (Which are our generalisation of line searches, trust regions, and learning rates.) |
BFGS |
class | BFGS (Broyden–Fletcher–Goldfarb–Shanno) minimisation algorithm. |
BacktrackingArmijo |
class | Perform a backtracking Armijo line search. |
BestSoFarFixedPoint |
class | Wraps another fixed-point solver, to return the best-so-far value. |
BestSoFarLeastSquares |
class | Wraps another least-squares solver, to return the best-so-far value. |
BestSoFarMinimiser |
class | Wraps another minimiser, to return the best-so-far value. |
BestSoFarRootFinder |
class | Wraps another root-finder, to return the best-so-far value. |
Bisection |
class | The bisection method of root finding. |
Chord |
class | The Chord method of root finding. |
ClassicalTrustRegion |
class | The classic trust-region update algorithm which uses a quadratic approximation of the objective function to predict reduction. |
DFP |
class | DFP (Davidon–Fletcher–Powell) minimisation algorithm. |
DampedNewtonDescent |
class | The damped Newton (Levenberg--Marquardt) descent. |
Dogleg |
class | Dogleg algorithm. |
DoglegDescent |
class | The Dogleg descent step, which switches between the Cauchy and the Newton descent directions. |
FixedPointIteration |
class | Repeatedly calls a function in search of a fixed point. |
FunctionInfo |
class | Different solvers (BFGS, Levenberg--Marquardt, ...) evaluate different quantities of the objective function. |
GaussNewton |
class | Gauss-Newton algorithm, for solving nonlinear least-squares problems. |
GoldenSearch |
class | Golden-section search for finding the minimum of a univariate function in a given interval. |
GradientDescent |
class | Classic gradient descent with a learning rate learning_rate. |
ImplicitAdjoint |
class | Backpropagate via the implicit function theorem. |
IndirectDampedNewtonDescent |
class | The indirect damped Newton (Levenberg--Marquardt) trust-region descent. |
IndirectLevenbergMarquardt |
class | The Levenberg--Marquardt method as a true trust-region method. |
LBFGS |
class | L-BFGS (Limited-memory Broyden–Fletcher–Goldfarb–Shanno) minimisation algorithm. |
LearningRate |
class | Move downhill by taking a step of the fixed size learning_rate. |
LevenbergMarquardt |
class | The Levenberg--Marquardt method. |
LinearTrustRegion |
class | The trust-region update algorithm which uses a linear approximation of the objective function to predict reduction. |
NelderMead |
class | The Nelder-Mead minimisation algorithm. (Downhill simplex derivative-free method.) |
Newton |
class | Newton's method for root finding. |
NewtonDescent |
class | Newton descent direction. |
NonlinearCG |
class | The nonlinear conjugate gradient method. |
NonlinearCGDescent |
class | The nonlinear conjugate gradient step. |
OptaxMinimiser |
class | A wrapper to use Optax first-order gradient-based optimisers with optimistix.minimise. |
RESULTS |
class | An enumeration, with the following entries: |
RecursiveCheckpointAdjoint |
class | Backpropagate by differentiating through the iterates directly. |
Solution |
class | The solution to a nonlinear solve. |
SteepestDescent |
class | The descent direction given by locally following the gradient. |
dai_yuan |
function | The Dai--Yuan formula for β. |
fixed_point |
function | Find a fixed-point of a function. |
fletcher_reeves |
function | The Fletcher--Reeves formula for β. |
hestenes_stiefel |
function | The Hestenes--Stiefel formula for β. |
least_squares |
function | Solve a nonlinear least-squares problem. |
max_norm |
function | Compute the L-infinity norm of a PyTree of arrays. |
minimise |
function | Minimise a function. |
polak_ribiere |
function | The Polak--Ribière formula for β. |
rms_norm |
function | Compute the RMS (root-mean-squared) norm of a PyTree of arrays. |
root_find |
function | Solve a root-finding problem. |
two_norm |
function | Computes the L2 norm of a PyTree of arrays. |
Upstream: einx¶
named-axis rearrangements, reductions and contractions
einx¶
| Name | Kind | What it does |
|---|---|---|
Tensor |
class | |
add |
function | Compute the sum of values of multiple given tensors. |
add_at |
function | Adds values from an update tensor to a target tensor at the coordinates specified by an indexing tensor. |
all |
function | Compute the logical conjunction (AND) of values in the given tensor. |
any |
function | Compute the logical disjunction (OR) of values in the given tensor. |
arange |
function | |
argmax |
function | Find the coordinates of the maximum values in the given tensor. |
argmin |
function | Find the coordinates of the minimum values in the given tensor. |
argsort |
function | Returns the indices that would sort values in the given tensor in ascending order. |
check |
function | |
count_nonzero |
function | Counts non-zero values in the given tensor. |
divide |
function | Computes the division between values of two given tensors. |
dot |
function | Compute the dot-product of values in the given tensors. |
elementwise |
function | |
equal |
function | Computes the equality comparison between values of two given tensors. |
flip |
function | Reverse the order of elements in the given tensor. |
floor_divide |
function | Computes the floor division between values of two given tensors. |
get_at |
function | Retrieves values from a tensor at the coordinates specified by another tensor. |
greater |
function | Computes the greater-than comparison between values of two given tensors. |
greater_equal |
function | Computes the greater-than-or-equal comparison between values of two given tensors. |
id |
function | Compute the identity-map of values in the given tensor. |
less |
function | Computes the less-than comparison between values of two given tensors. |
less_equal |
function | Computes the less-than-or-equal comparison between values of two given tensors. |
log_softmax |
function | Compute the log-softmax of values in the given tensor. |
logaddexp |
function | Compute the log-sum-exp of values of multiple given tensors. |
logical_and |
function | Compute the logical conjunction (AND) of values of multiple given tensors. |
logical_or |
function | Compute the logical disjunction (OR) of values of multiple given tensors. |
logsumexp |
function | Compute the log-sum-exp of values in the given tensor. |
matches |
function | Returns whether the given tensors match the einx expression description under the given constraints. |
max |
function | Compute the maximum of values in the given tensor. |
maximum |
function | Compute the maximum of values of multiple given tensors. |
mean |
function | Compute the mean of values in the given tensor. |
min |
function | Compute the minimum of values in the given tensor. |
minimum |
function | Compute the minimum of values of multiple given tensors. |
multiply |
function | Compute the product of values of multiple given tensors. |
not_equal |
function | Computes the non-equality comparison between values of two given tensors. |
prod |
function | Compute the product of values in the given tensor. |
rearrange |
function | |
reduce |
function | |
roll |
function | Rolls the elements in the given tensor by the specified shift amounts. |
set_at |
function | Sets values in a target tensor from an update tensor at the coordinates specified by an indexing tensor. |
softmax |
function | Compute the softmax of values in the given tensor. |
solve |
function | This function is an alias for :func:einx.solve_axes. |
solve_axes |
function | Solve for the length of all axes in an expression under the given constraints. |
solve_shapes |
function | Solve for the shapes of the einx expressions under the given constraints. |
sort |
function | Returns values in the given tensor sorted in ascending order. |
std |
function | Compute the standard deviation of values in the given tensor. |
subtract |
function | Computes the difference between values of two given tensors. |
subtract_at |
function | Subtracts values from a target tensor by an update tensor at the coordinates specified by an indexing tensor. |
sum |
function | Compute the sum of values in the given tensor. |
true_divide |
function | Computes the true division between values of two given tensors. |
var |
function | Compute the variance of values in the given tensor. |
vmap |
function | |
vmap_with_axis |
function | |
where |
function | Conditionally select values from two tensors based on a boolean mask. |
Upstream: functax¶
quadrature rules (nodes and weights) that integrix sums with
functax¶
| Name | Kind | What it does |
|---|---|---|
FunctaxError |
class | Base class for every exception raised by functax. |
GeometryError |
class | Raised when an axis, grid or point set is malformed. |
MissingExtraError |
class | Raised when a module or a plan needs an optional extra that is missing. |
NonlinearSchemeError |
class | Raised when a linear-only operation meets a plan whose fit is nonlinear in y. |
OutsideDomainError |
class | Raised under outside="raise" when a target lies outside the domain. |
PolicyError |
class | Raised when an interpolation policy names an option that does not exist. |
ValidationError |
class | Raised when an argument fails validation. |
functax.quad¶
| Name | Kind | What it does |
|---|---|---|
CurveRule |
class | A rule on a curve L: ∫_L g ds ≈ ∑ₖ Δsₖ g(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 R: ∫_{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πR²/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πR²/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. |
Upstream: gaussx-infer¶
Gaussian states, expectations (Gauss-Hermite, unscented) and the square-root Kalman steps
gaussx_infer¶
| Name | Kind | What it does |
|---|---|---|
AbstractIntegrator |
class | Re-exported from gaussx_infer. |
AbstractLikelihood |
class | Re-exported from gaussx_infer. |
AssumedDensityFilter |
class | Re-exported from gaussx_infer. |
BYM2GMRF |
class | Re-exported from gaussx_infer. |
BernoulliLikelihood |
class | Re-exported from gaussx_infer. |
BinomialLikelihood |
class | Re-exported from gaussx_infer. |
CallableLikelihood |
class | Re-exported from gaussx_infer. |
ConstantSDE |
class | Re-exported from gaussx_infer. |
ConstrainedGMRF |
class | Re-exported from gaussx_infer. |
CosineSDE |
class | Re-exported from gaussx_infer. |
CubatureIntegrator |
class | Re-exported from gaussx_infer. |
DAREResult |
class | Re-exported from gaussx_infer. |
EmissionModel |
class | Re-exported from gaussx_infer. |
FifthOrderCubatureIntegrator |
class | Re-exported from gaussx_infer. |
FilterState |
class | Re-exported from gaussx_infer. |
FixedPointState |
class | Re-exported from gaussx_infer. |
GaussHermiteIntegrator |
class | Re-exported from gaussx_infer. |
GaussianExpFam |
class | Re-exported from gaussx_infer. |
GaussianLikelihood |
class | Re-exported from gaussx_infer. |
GaussianMRF |
class | Re-exported from gaussx_infer. |
GaussianPrior |
class | Re-exported from gaussx_infer. |
GaussianSites |
class | Re-exported from gaussx_infer. |
GaussianState |
class | Re-exported from gaussx_infer. |
HeteroscedasticGaussianLikelihood |
class | Re-exported from gaussx_infer. |
InformationDiagnostics |
class | Re-exported from gaussx_infer. |
IntegratedWienerSDE |
class | Re-exported from gaussx_infer. |
IntrinsicGMRF |
class | Re-exported from gaussx_infer. |
LOOResult |
class | Re-exported from gaussx_infer. |
LOVECache |
class | Re-exported from gaussx_infer. |
LaplaceModel |
class | Re-exported from gaussx_infer. |
LaplaceResult |
class | Re-exported from gaussx_infer. |
LinearGaussianPosterior |
class | Re-exported from gaussx_infer. |
LinearizedSDE |
class | Re-exported from gaussx_infer. |
MaternSDE |
class | Re-exported from gaussx_infer. |
MomentMatchResult |
class | Re-exported from gaussx_infer. |
MonteCarloIntegrator |
class | Re-exported from gaussx_infer. |
NegativeBinomialLikelihood |
class | Re-exported from gaussx_infer. |
PeriodicSDE |
class | Re-exported from gaussx_infer. |
PoissonLikelihood |
class | Re-exported from gaussx_infer. |
PredictionCache |
class | Re-exported from gaussx_infer. |
ProductSDE |
class | Re-exported from gaussx_infer. |
PropagationResult |
class | Re-exported from gaussx_infer. |
QuasiPeriodicSDE |
class | Re-exported from gaussx_infer. |
SDEKernel |
class | Re-exported from gaussx_infer. |
SDEParams |
class | Re-exported from gaussx_infer. |
SLRResult |
class | Re-exported from gaussx_infer. |
SitePosterior |
class | Re-exported from gaussx_infer. |
SoftmaxLikelihood |
class | Re-exported from gaussx_infer. |
StudentTLikelihood |
class | Re-exported from gaussx_infer. |
SumSDE |
class | Re-exported from gaussx_infer. |
TaylorIntegrator |
class | Re-exported from gaussx_infer. |
UnscentedIntegrator |
class | Re-exported from gaussx_infer. |
blr_diag_update |
function | Re-exported from gaussx_infer. |
blr_full_update |
function | Re-exported from gaussx_infer. |
build_prediction_cache |
function | Re-exported from gaussx_infer. |
cavity_distribution |
function | Re-exported from gaussx_infer. |
cavity_from_marginal |
function | Re-exported from gaussx_infer. |
collapsed_elbo |
function | Re-exported from gaussx_infer. |
conditional |
function | Re-exported from gaussx_infer. |
conditional_interpolate |
function | Re-exported from gaussx_infer. |
cost_expectation |
function | Re-exported from gaussx_infer. |
cubature_points |
function | Re-exported from gaussx_infer. |
cvi_update_sites |
function | Re-exported from gaussx_infer. |
damped_natural_update |
function | Re-exported from gaussx_infer. |
dare |
function | Re-exported from gaussx_infer. |
discrepancy_step_size |
function | Re-exported from gaussx_infer. |
discretize_mfd |
function | Re-exported from gaussx_infer. |
discretize_mfd_sequence |
function | Re-exported from gaussx_infer. |
eki_step |
function | Re-exported from gaussx_infer. |
elbo |
function | Re-exported from gaussx_infer. |
enkf_analysis |
function | Re-exported from gaussx_infer. |
ensemble_covariance |
function | Re-exported from gaussx_infer. |
ensemble_cross_covariance |
function | Re-exported from gaussx_infer. |
ensemble_kalman_gain |
function | Re-exported from gaussx_infer. |
ensemble_rts_step |
function | Re-exported from gaussx_infer. |
ep_tilted_moments |
function | Re-exported from gaussx_infer. |
etkf_analysis |
function | Re-exported from gaussx_infer. |
etkf_transform |
function | Re-exported from gaussx_infer. |
euclidean_distance |
function | Re-exported from gaussx_infer. |
expectation_to_mean_chol |
function | Re-exported from gaussx_infer. |
expectation_to_natural |
function | Re-exported from gaussx_infer. |
expectations_to_ssm |
function | Re-exported from gaussx_infer. |
expected_log_likelihood |
function | Re-exported from gaussx_infer. |
fifth_order_cubature_points |
function | Re-exported from gaussx_infer. |
fisher_info |
function | Re-exported from gaussx_infer. |
fixed_point_init |
function | Re-exported from gaussx_infer. |
fixed_point_step |
function | Re-exported from gaussx_infer. |
gaspari_cohn |
function | Re-exported from gaussx_infer. |
gauss_hermite_points |
function | Re-exported from gaussx_infer. |
gauss_kl |
function | Re-exported from gaussx_infer. |
gaussian_entropy |
function | Re-exported from gaussx_infer. |
gaussian_expected_log_lik |
function | Re-exported from gaussx_infer. |
gaussian_kl |
function | Re-exported from gaussx_infer. |
gaussian_log_prob |
function | Re-exported from gaussx_infer. |
gaussian_taper |
function | Re-exported from gaussx_infer. |
gradient_expectation |
function | Re-exported from gaussx_infer. |
haversine_distance |
function | Re-exported from gaussx_infer. |
infinite_horizon_filter |
function | Re-exported from gaussx_infer. |
infinite_horizon_smoother |
function | Re-exported from gaussx_infer. |
inflate_multiplicative |
function | Re-exported from gaussx_infer. |
inflate_rtpp |
function | Re-exported from gaussx_infer. |
inflate_rtps |
function | Re-exported from gaussx_infer. |
information_diagnostics |
function | Re-exported from gaussx_infer. |
joseph_update |
function | Re-exported from gaussx_infer. |
kalman_filter |
function | Re-exported from gaussx_infer. |
kalman_gain |
function | Re-exported from gaussx_infer. |
kl_divergence |
function | Re-exported from gaussx_infer. |
kl_standard_normal |
function | Re-exported from gaussx_infer. |
kronecker_mll |
function | Re-exported from gaussx_infer. |
kronecker_posterior_predictive |
function | Re-exported from gaussx_infer. |
laplace_model |
function | Re-exported from gaussx_infer. |
laplace_result |
function | Re-exported from gaussx_infer. |
leave_one_out_cv |
function | Re-exported from gaussx_infer. |
ledoit_wolf_shrinkage |
function | Re-exported from gaussx_infer. |
linear_gaussian_update |
function | Re-exported from gaussx_infer. |
linearize_sde |
function | Re-exported from gaussx_infer. |
localization_matrix |
function | Re-exported from gaussx_infer. |
localized_kalman_gain |
function | Re-exported from gaussx_infer. |
log_likelihood_expectation |
function | Re-exported from gaussx_infer. |
log_marginal_likelihood |
function | Re-exported from gaussx_infer. |
log_partition |
function | Re-exported from gaussx_infer. |
love_cache |
function | Re-exported from gaussx_infer. |
love_residual |
function | Re-exported from gaussx_infer. |
love_variance |
function | Re-exported from gaussx_infer. |
love_variance_error_bound |
function | Re-exported from gaussx_infer. |
masked_moment_inputs |
function | Re-exported from gaussx_infer. |
matheron_update |
function | Re-exported from gaussx_infer. |
mean_chol_to_expectation |
function | Re-exported from gaussx_infer. |
mean_chol_to_natural |
function | Re-exported from gaussx_infer. |
mean_cov_to_natural |
function | Re-exported from gaussx_infer. |
mean_expectation |
function | Re-exported from gaussx_infer. |
meanfield_kalman_filter |
function | Re-exported from gaussx_infer. |
meanfield_rts_smoother |
function | Re-exported from gaussx_infer. |
mixture_quantile_gaussian_approx |
function | Re-exported from gaussx_infer. |
moment_match |
function | Re-exported from gaussx_infer. |
moment_transform |
function | Re-exported from gaussx_infer. |
natural_to_expectation |
function | Re-exported from gaussx_infer. |
natural_to_mean_chol |
function | Re-exported from gaussx_infer. |
natural_to_mean_cov |
function | Re-exported from gaussx_infer. |
naturals_to_ssm |
function | Re-exported from gaussx_infer. |
newton_update |
function | Re-exported from gaussx_infer. |
nonlinear_kalman_filter |
function | Re-exported from gaussx_infer. |
nonlinear_kalman_predict |
function | Re-exported from gaussx_infer. |
nonlinear_kalman_update |
function | Re-exported from gaussx_infer. |
nonlinear_rts_smoother |
function | Re-exported from gaussx_infer. |
nonlinear_rts_step |
function | Re-exported from gaussx_infer. |
oilmm_back_project |
function | Re-exported from gaussx_infer. |
oilmm_project |
function | Re-exported from gaussx_infer. |
pairwise_marginals |
function | Re-exported from gaussx_infer. |
parallel_kalman_filter |
function | Re-exported from gaussx_infer. |
parallel_rts_smoother |
function | Re-exported from gaussx_infer. |
preconditioned_transition |
function | Re-exported from gaussx_infer. |
predict_mean |
function | Re-exported from gaussx_infer. |
predict_variance |
function | Re-exported from gaussx_infer. |
predictive_variance_sbpv |
function | Re-exported from gaussx_infer. |
predictive_variance_spv |
function | Re-exported from gaussx_infer. |
process_noise_covariance |
function | Re-exported from gaussx_infer. |
riemannian_psd_correction |
function | Re-exported from gaussx_infer. |
rts_interpolate |
function | Re-exported from gaussx_infer. |
rts_sample |
function | Re-exported from gaussx_infer. |
rts_smoother |
function | Re-exported from gaussx_infer. |
sample_joint_conditional |
function | Re-exported from gaussx_infer. |
sample_mvn |
function | Re-exported from gaussx_infer. |
sde_autocovariance |
function | Re-exported from gaussx_infer. |
sde_kl_divergence |
function | Re-exported from gaussx_infer. |
sigma_point_kalman_update |
function | Re-exported from gaussx_infer. |
sigma_points |
function | Re-exported from gaussx_infer. |
site_evidence_correction |
function | Re-exported from gaussx_infer. |
site_log_evidence |
function | Re-exported from gaussx_infer. |
site_mean_var_from_natural |
function | Re-exported from gaussx_infer. |
site_natural_from_tilted |
function | Re-exported from gaussx_infer. |
site_posterior |
function | Re-exported from gaussx_infer. |
sites_to_precision |
function | Re-exported from gaussx_infer. |
soar_taper |
function | Re-exported from gaussx_infer. |
sparse_conditional |
function | Re-exported from gaussx_infer. |
spingp_log_likelihood |
function | Re-exported from gaussx_infer. |
spingp_posterior |
function | Re-exported from gaussx_infer. |
sqrt_backward_conditional |
function | Re-exported from gaussx_infer. |
sqrt_kalman_predict |
function | Re-exported from gaussx_infer. |
sqrt_kalman_update |
function | Re-exported from gaussx_infer. |
sqrt_rts_step |
function | Re-exported from gaussx_infer. |
ssm_to_expectations |
function | Re-exported from gaussx_infer. |
ssm_to_naturals |
function | Re-exported from gaussx_infer. |
statistical_linear_regression |
function | Re-exported from gaussx_infer. |
sufficient_stats |
function | Re-exported from gaussx_infer. |
svgp_variance_adjustment |
function | Re-exported from gaussx_infer. |
theta_design |
function | Re-exported from gaussx_infer. |
tikhonov_augment |
function | Re-exported from gaussx_infer. |
to_mean_cov |
function | Re-exported from gaussx_infer. |
trace_correction |
function | Re-exported from gaussx_infer. |
udl_from_ssm_params |
function | Re-exported from gaussx_infer. |
udl_to_ssm_params |
function | Re-exported from gaussx_infer. |
unwhiten |
function | Re-exported from gaussx_infer. |
unwhiten_covariance |
function | Re-exported from gaussx_infer. |
variational_elbo_gaussian |
function | Re-exported from gaussx_infer. |
variational_elbo_mc |
function | Re-exported from gaussx_infer. |
vb_mean_correction |
function | Re-exported from gaussx_infer. |
whiten_covariance |
function | Re-exported from gaussx_infer. |
whitened_svgp_predict |
function | Re-exported from gaussx_infer. |