Pre-quaxed libraries for multiple dispatch over abstract array types in JAX
Project description
quaxed
Pre-Quaxify
'ed JAX
Quaxed
wraps jax libraries (using
quax
) to enable using those libraries with
custom array-ish objects, not only jax arrays.
Installation
pip install quaxed
Documentation
Quick Start
To understand how quax
works it's magic, see
quax.quaxify
and the
tutorials.
To use this library, it's as simple as:
# Import pre-quaxified library
>>> import quaxed.numpy as jnp # this is quaxify(jax.numpy)
# As an example, let's import an array-ish object
>>> from unxt import Quantity
>>> x = Quantity(2, "km")
>>> jnp.square(w)
Quantity['area'](Array(4, dtype=int64, weak_type=True), unit='km2')
Development
We welcome contributions!
Citation
If you found this library to be useful and want to support the development and maintenance of lower-level utility libraries for the scientific community, please consider citing this work.
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
quaxed-0.6.1.tar.gz
(56.9 kB
view details)
Built Distribution
quaxed-0.6.1-py3-none-any.whl
(35.9 kB
view details)
File details
Details for the file quaxed-0.6.1.tar.gz
.
File metadata
- Download URL: quaxed-0.6.1.tar.gz
- Upload date:
- Size: 56.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c34b573053300487c9d400f7a29d71cf42227ac714ebdb6a703fb98f30c93933 |
|
MD5 | 32fc7a020f35cae0c6c1e74f4ea2957e |
|
BLAKE2b-256 | bc314364a1622971145af329e9cdae020c81c6193c34543ec498d3c7cdca3d36 |
File details
Details for the file quaxed-0.6.1-py3-none-any.whl
.
File metadata
- Download URL: quaxed-0.6.1-py3-none-any.whl
- Upload date:
- Size: 35.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee4ce27102c2b967c2e12ee7dc5e102efa15d552b66efd865d2313830614b0a8 |
|
MD5 | e8451e2d9ca2e6b93111dbf0d3a8d52a |
|
BLAKE2b-256 | 159e5ab672bb7c40fc8715f572950765b78495cde6a97d61b4c692d03382d530 |