Skip to main content

Array-API JAX compatibility

Project description

quaxed

Actions Status Documentation Status

PyPI version Conda-Forge PyPI platforms

DOI

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


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.4.tar.gz (43.0 kB view details)

Uploaded Source

Built Distribution

quaxed-0.4.4-py3-none-any.whl (30.1 kB view details)

Uploaded Python 3

File details

Details for the file quaxed-0.4.4.tar.gz.

File metadata

  • Download URL: quaxed-0.4.4.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

Hashes for quaxed-0.4.4.tar.gz
Algorithm Hash digest
SHA256 979acc8bec656b9d5964895ec99ccb63f4b9f7a4ef3d7043dadf1b8d4d682c22
MD5 04c004265001d6f4485cc800c6842db6
BLAKE2b-256 a8de7ba57e24e7585a00d06d10832f7051f0c5d7176d0481c3de65c9073f5d99

See more details on using hashes here.

File details

Details for the file quaxed-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: quaxed-0.4.4-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

Hashes for quaxed-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a0cd147da8fd5371ac14bc78bb383073f44fc461e6d6215d5639bd9f9e19c190
MD5 08bbee88f163dee69b3feb5bec68d8df
BLAKE2b-256 eecd55c175fe669e3ee223420efb0647047fa1dbf0d482c2f9607150f1b50b13

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page