Skip to main content

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

PyPI platforms PyPI version

pip install quaxed

Documentation

Documentation Status

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

Actions Status

We welcome contributions!

Citation

DOI

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


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

Uploaded Source

Built Distribution

quaxed-0.5.0-py3-none-any.whl (35.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quaxed-0.5.0.tar.gz
  • Upload date:
  • Size: 56.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for quaxed-0.5.0.tar.gz
Algorithm Hash digest
SHA256 6f51a3790b4153417fab7b0dae6d4952b6c1ebc003dfbd45957d54844e66be81
MD5 74d5f8f3df2cdf0a8c4fcbaa847c4f13
BLAKE2b-256 92fc3f3b26b8f8895bbd95f0bec717c426c211b9d88d20f18a4866b1acea2931

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quaxed-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 35.2 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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b1e2e09346d422a218f1efdf4889a7474e4335a33769d1fdf362d0b53a4a1d7
MD5 a8942c6b121ce5764ea1ad6fd8be53a0
BLAKE2b-256 21c2b13c18c5bbf6e23f3c8e0b6f5b1e83ac7fbc7571d308b142c4385d83dd43

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