Skip to main content

Pre-quaxed libraries for multiple dispatch over abstract array types in JAX

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 version PyPI platforms

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 Codecov

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

Uploaded Source

Built Distribution

quaxed-0.6.6-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for quaxed-0.6.6.tar.gz
Algorithm Hash digest
SHA256 f3e894fdf34b9b07cc64914fede68bae77553d6f1ebe7f6fa3536d25cc80fb4e
MD5 f81528fb8abd85b00f3f44758999c007
BLAKE2b-256 8cbfaab6ae9e6b3039b5b9ffbf1902c44c1723bece306aa6d7fde9880133adc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for quaxed-0.6.6.tar.gz:

Publisher: cd.yml on GalacticDynamics/quaxed

Attestations:

File details

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

File metadata

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

File hashes

Hashes for quaxed-0.6.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9525220d24dcb371a918f4f9b0f3e89ca841181fccbc2957b3916ced650b6709
MD5 3920771a3408f38fbc97010a7e416123
BLAKE2b-256 2ff6f0c193c7e54b2028a0d5708422300ad3db940f1fee1220d342882c119c62

See more details on using hashes here.

Provenance

The following attestation bundles were made for quaxed-0.6.6-py3-none-any.whl:

Publisher: cd.yml on GalacticDynamics/quaxed

Attestations:

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