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

Uploaded Source

Built Distribution

quaxed-0.5.1-py3-none-any.whl (35.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for quaxed-0.5.1.tar.gz
Algorithm Hash digest
SHA256 48f92b866c483fed0c2540f641a930e862afe56195fc2267705a5909e88d6572
MD5 b4f55bcc7295bfd3f38dd38685da380e
BLAKE2b-256 17d63d7668eac9ce5a90aac618b0988efa77e8d583b9f3bc67da4b2d95a92782

See more details on using hashes here.

File details

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

File metadata

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

Hashes for quaxed-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d988cd0f88adf7791f032ac0d7877e1aa279caaac07ef13b56a67174bd23cf3e
MD5 135b74604036d1254c61a56d544ff8b5
BLAKE2b-256 70e558282e701447533e13f32c8bb0006a29a7f68b065ffca30f1130064e8b76

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