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.3.tar.gz
(43.0 kB
view details)
Built Distribution
quaxed-0.4.3-py3-none-any.whl
(30.1 kB
view details)
File details
Details for the file quaxed-0.4.3.tar.gz
.
File metadata
- Download URL: quaxed-0.4.3.tar.gz
- Upload date:
- Size: 43.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2cb078d43c050d6ed008a05f20767d7301413ca4f4cbf4dc2b470b875e19ade |
|
MD5 | d95f4579bbd846de9c32f7eab60a4bf0 |
|
BLAKE2b-256 | ee0839e30abc428f7c70b90f6d664e0c846da9ff013179cf10e0fdb0723ec6b5 |
File details
Details for the file quaxed-0.4.3-py3-none-any.whl
.
File metadata
- Download URL: quaxed-0.4.3-py3-none-any.whl
- Upload date:
- Size: 30.1 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 | 61c40dafb262eae7b24d3b4066342502f59739b2704b5ef4f4f2e842d104214e |
|
MD5 | 5c49a7ebaeabd581f3c49f15440c7adf |
|
BLAKE2b-256 | 1b997750f612d64df7f8d5ece16786876f29095a5178074f76a8388277de2239 |