Array-API JAX compatibility
Project description
quaxed
Quaxed
wraps jax libraries (using
quax
) to enable using those libraries with
custom array-ish objects, not only jax arrays.
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 qnp # this is quaxify(jax.numpy)
# As an example, let's import an array-ish object
>>> from unxt import Quantity
>>> x = Quantity(2, "km")
>>> qnp.square(w)
Quantity['area'](Array(4, dtype=int64, weak_type=True), unit='km2')
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.4.6.tar.gz
(43.3 kB
view details)
Built Distribution
quaxed-0.4.6-py3-none-any.whl
(30.2 kB
view details)
File details
Details for the file quaxed-0.4.6.tar.gz
.
File metadata
- Download URL: quaxed-0.4.6.tar.gz
- Upload date:
- Size: 43.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e8399e69515205b463f7a26449767f9c0fcc04b333778dd78bd5d03fc428891 |
|
MD5 | 84f0fbf98bfc124fe5a45958653dc419 |
|
BLAKE2b-256 | 2a00f6663e6cd95c385d01f6d1e07b8fa967d7452319e03b9f1a1fdd1702801f |
File details
Details for the file quaxed-0.4.6-py3-none-any.whl
.
File metadata
- Download URL: quaxed-0.4.6-py3-none-any.whl
- Upload date:
- Size: 30.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce537447cbf34c0e3dcc8dda7c7ddffa812da910b50c304f3db12e8457647b16 |
|
MD5 | 54803043296cb05b34e53b9055773abb |
|
BLAKE2b-256 | 19a1dc1c18233b51dd697ca4c0e69d9e3e54413e71212335df57dd1523e74884 |