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

Uploaded Source

Built Distribution

quaxed-0.5.3-py3-none-any.whl (35.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quaxed-0.5.3.tar.gz
  • Upload date:
  • Size: 56.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for quaxed-0.5.3.tar.gz
Algorithm Hash digest
SHA256 dfa0a3bebadca9270f64a8b9e909c5e56d0e04f8202f1a7a33734711fdfe58c2
MD5 c6caa482b9c9736cfd746e3c9c5c8975
BLAKE2b-256 aee90179f9d73d948523f06cafad4a7359d4abfcfd5991ec2b116b65b375ce4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quaxed-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 35.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for quaxed-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d5a563d78c9c91cb604e72ddac4fbf103a683a1d098877d3094c4c1e3625674d
MD5 99bbaf0247429dac219ac45b5550975d
BLAKE2b-256 6029f1e56ebabaea0751dfddd015a60f0f6dd48061b21d34b984c63dd69d91f8

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