JAX-native solver for initial value problems
Project description
pardax
A JAX-native solver for initial value problems.
pardax provides a variety of composable time-stepping schemes that
work seamlessly with JAX transformations, along with a familiar interface
inspired by scipy.integrate.solve_ivp
Check out the documentation for more details.
Installation
pip install pardax
or with uv:
uv add pardax
Quick start
import pardax as pdx
# 1. Define your ODE
# NOTE: must be functionally pure (JAX-compatible)
def my_pde_fun(t: float, y: jax.Array, params: PyTree):
"""dy/dt = f(t, y, ...)"""
...
# 2. Set initial condition
y0 = ...
# 3. Choose time-stepping method
method = pdx.RK4()
# 4. Integrate
t, y = pdx.solve_ivp(
my_pde_fun,
t_span=(0.0, 1.0),
y0=y0,
stepper=method,
step_size=0.001,
params=params
)
Contributing
See CONTRIBUTING.md for instructions on setting up a development environment, running tests, linting, and building the documentation locally.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pardax-1.0.0.tar.gz.
File metadata
- Download URL: pardax-1.0.0.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed687d594c4752ba7fce252764d78d959e69c5af8280e4b417a5ef0b1427948a
|
|
| MD5 |
6e8292098e38bb97d0e77fa76528b8c6
|
|
| BLAKE2b-256 |
a54e9ebba5a9d9d1bcb97cb37710031535d39d1bba89ec086005dfe85c7a30d5
|
File details
Details for the file pardax-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pardax-1.0.0-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b627bfdce4512c81c4976fb11be6bd8922013e094c551596e88b10c17e9cba2c
|
|
| MD5 |
b6196a0d50ad6c92dcdf89615b4260db
|
|
| BLAKE2b-256 |
ba4f288f00b1b84c19933e15d6f3b94235b0c8dc4fa7b111d9d59bc28fb13377
|