omnibias.fields.jax.ops
Structured scalar, vector, and tensor fields with derivative caches, calculus operators, and coordinate conventions.
import omnibias.fields.jax.opsModule contract & mathematical conventions
Functional operator surface for the JAX backend.
Shared formulas do not imply universal floating-point identity. Verify dtype, shape, derivative-order support, and the stated numerical assumptions for the path you use.
basicModule ↗complexModule ↗conservationModule ↗high_orderModule ↗integralModule ↗nonlinearModule ↗normsModule ↗registryModule ↗tensorModule ↗vectorModule ↗Imports & aliases
These names share a definition with another public module. Follow a name for its full contract, parameters, and examples.
| Import from this module | Canonical reference |
|---|---|
advection | omnibias.fields.jax.ops.advection |
advection_diffusion_residual | omnibias.fields.jax.ops.advection_diffusion_residual |
biharmonic | omnibias.fields.jax.ops.biharmonic |
conservation_residual | omnibias.fields.jax.ops.conservation_residual |
curl | omnibias.fields.jax.ops.curl |
curl_of_curl | omnibias.fields.jax.ops.curl_of_curl |
dalembertian | omnibias.fields.jax.ops.dalembertian |
deformation_gradient | omnibias.fields.jax.ops.deformation_gradient |
derivative | omnibias.fields.jax.ops.derivative |
diffusive_flux | omnibias.fields.jax.ops.diffusive_flux |
directional_derivative | omnibias.fields.jax.ops.directional_derivative |
divergence | omnibias.fields.jax.ops.divergence |
dz | omnibias.fields.jax.ops.dz |
dzbar | omnibias.fields.jax.ops.dzbar |
flux_divergence | omnibias.fields.jax.ops.flux_divergence |
grad_squared_norm | omnibias.fields.jax.ops.grad_squared_norm |
gradient | omnibias.fields.jax.ops.gradient |
gradient_of_composition | omnibias.fields.jax.ops.gradient_of_composition |
gradient_of_derivative | omnibias.fields.jax.ops.gradient_of_derivative |
gradient_of_divergence | omnibias.fields.jax.ops.gradient_of_divergence |
hessian | omnibias.fields.jax.ops.hessian |
inner_product | omnibias.fields.jax.ops.inner_product |
integrate | omnibias.fields.jax.ops.integrate |
jacobian | omnibias.fields.jax.ops.jacobian |
l2_norm | omnibias.fields.jax.ops.l2_norm |
laplacian | omnibias.fields.jax.ops.laplacian |
laplacian_of_composition | omnibias.fields.jax.ops.laplacian_of_composition |
line_integral | omnibias.fields.jax.ops.line_integral |
material_derivative | omnibias.fields.jax.ops.material_derivative |
mixed_partial | omnibias.fields.jax.ops.mixed_partial |
p_laplacian | omnibias.fields.jax.ops.p_laplacian |
polylaplacian | omnibias.fields.jax.ops.polylaplacian |
quadrature_nodes | omnibias.fields.jax.ops.quadrature_nodes |
rate_of_rotation_tensor | omnibias.fields.jax.ops.rate_of_rotation_tensor |
skew_symmetric_advection | omnibias.fields.jax.ops.skew_symmetric_advection |
sobolev_norm | omnibias.fields.jax.ops.sobolev_norm |
spatial_hessian | omnibias.fields.jax.ops.spatial_hessian |
spatial_jacobian | omnibias.fields.jax.ops.spatial_jacobian |
stack_components | omnibias.fields.jax.ops.stack_components |
strain_rate | omnibias.fields.jax.ops.strain_rate |
tensor_cofactor | omnibias.fields.jax.ops.tensor_cofactor |
tensor_determinant | omnibias.fields.jax.ops.tensor_determinant |
tensor_divergence | omnibias.fields.jax.ops.tensor_divergence |
tensor_double_dot | omnibias.fields.jax.ops.tensor_double_dot |
tensor_inverse | omnibias.fields.jax.ops.tensor_inverse |
tensor_matmul | omnibias.fields.jax.ops.tensor_matmul |
tensor_trace | omnibias.fields.jax.ops.tensor_trace |
tensor_transpose | omnibias.fields.jax.ops.tensor_transpose |
value | omnibias.fields.jax.ops.value |
variable_coefficient_diffusion | omnibias.fields.jax.ops.variable_coefficient_diffusion |
vector_biharmonic | omnibias.fields.jax.ops.vector_biharmonic |
vector_derivative | omnibias.fields.jax.ops.vector_derivative |
vector_hessian | omnibias.fields.jax.ops.vector_hessian |
vector_laplacian | omnibias.fields.jax.ops.vector_laplacian |
vector_polylaplacian | omnibias.fields.jax.ops.vector_polylaplacian |
vorticity | omnibias.fields.jax.ops.vorticity |
wave_operator | omnibias.fields.jax.ops.wave_operator |
register
omnibias.fields.jax.ops.registerSource ↗register(name: str) -> Callable[[Callable[..., Any]], Callable[..., Any]]Decorator: register a new op under name.
Examples
>>> @register("symmetric_laplacian")
... def sym_lap(state, name):
... return state.ops.laplacian(state, name)Parameters
| Name | Type & default | Contract |
|---|---|---|
namepositional-or-keyword | strRequired | See the operation contract and implementation below. |
Callable[[Callable[..., Any]], Callable[..., Any]]Explicit validation & failure cases
- When
not isinstance(name, str) or not name, raisesValueError('op name must be a non-empty string'). - When
' ' in name or name != name.lower(), raisesValueError(f'op names must be lowercase with no whitespace; got {name!r}').
These are explicit source guards. Backend operations may also raise for invalid shapes, dtypes, or unsupported devices.
Executed regression · ops registry roundtrip
Recorded coverage confirms this test executed the API body. This example belongs to the pinned upstream test suite. It may use fixtures and imports from its full file. Run it from that checkout with its test dependencies installed.
def test_ops_registry_roundtrip() -> None:
@ops_registry.register("phase1_probe_op")
def _probe(state: object, name: str) -> str:
return f"probe::{name}"
assert ops_registry.lookup("phase1_probe_op") is _probe
assert ops_registry.lookup("definitely_not_registered") is Nonepython -m pytest "packages/omnibias-fields/tests/_core/test_substrate.py::test_ops_registry_roundtrip" -qRead the implementation
def register(name: str) -> Callable[[Callable[..., Any]], Callable[..., Any]]:
"""Decorator: register a new op under ``name``.
Examples
--------
>>> @register("symmetric_laplacian")
... def sym_lap(state, name):
... return state.ops.laplacian(state, name)
"""
if not isinstance(name, str) or not name:
raise ValueError("op name must be a non-empty string")
if " " in name or name != name.lower():
raise ValueError(
f"op names must be lowercase with no whitespace; got {name!r}"
)
def deco(fn: Callable[..., Any]) -> Callable[..., Any]:
if name in _REGISTRY:
raise ValueError(f"op {name!r} is already registered")
_REGISTRY[name] = fn
return fn
return decoOther public import paths
omnibias.fields.jax.ops.registeromnibias.fields.torch.ops.registeromnibias.fields.jax.ops.registry.registeromnibias.fields.torch.ops.registry.register