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.5.tar.gz
(133.3 kB
view details)
Built Distribution
quaxed-0.6.5-py3-none-any.whl
(36.1 kB
view details)
File details
Details for the file quaxed-0.6.5.tar.gz
.
File metadata
- Download URL: quaxed-0.6.5.tar.gz
- Upload date:
- Size: 133.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a37079bdb7c14ee170e179f60a21c4df156ed88029b0e602f6c416af75c657b3 |
|
MD5 | 40150c1e6ba0c2bee9079f7ac99f9710 |
|
BLAKE2b-256 | 551b9d87d23c8da30d2cec75e5503f673e26a976a93d70c3ae4179b4eb672311 |
File details
Details for the file quaxed-0.6.5-py3-none-any.whl
.
File metadata
- Download URL: quaxed-0.6.5-py3-none-any.whl
- Upload date:
- Size: 36.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cc817de93c54d4f2e9f152fb77f8c8602a2864e22bfa0e04669e2a116123b24 |
|
MD5 | cf3c784fd07d35a9a9124ef60bde15a8 |
|
BLAKE2b-256 | 8e0ceee6ee0c0930fa657a197fc8a7a54ffe16498634c785e313da93a2a4b024 |