Array-API JAX compatibility
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.5.2.tar.gz
(56.2 kB
view details)
Built Distribution
quaxed-0.5.2-py3-none-any.whl
(35.4 kB
view details)
File details
Details for the file quaxed-0.5.2.tar.gz
.
File metadata
- Download URL: quaxed-0.5.2.tar.gz
- Upload date:
- Size: 56.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 178baca756f7a9fb946d1cd598dd3dd256cf113f2f7377f675d316ba807fa018 |
|
MD5 | 1931c3000ab472c539dae751ba81b367 |
|
BLAKE2b-256 | 5e7d161f6170083004690e0f5527f2c9aafab858b881147561c35fc54739147e |
File details
Details for the file quaxed-0.5.2-py3-none-any.whl
.
File metadata
- Download URL: quaxed-0.5.2-py3-none-any.whl
- Upload date:
- Size: 35.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd6c1a36e6786eccef6459b0e1c685e47f726bcb43a9659f06b00ba4cff5072f |
|
MD5 | 5cfdd45de63a468e5258f76620d2179a |
|
BLAKE2b-256 | 1ffbf7d0df34c9d1fbb1560c9211bb6edffc4971856b3c1599c0581b9e6dfcaa |