Skip to main content

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

Project description

quaxed

Pre-Quaxify'ed JAX

PyPI: quaxed PyPI versions: quaxed ReadTheDocs quaxed license

CI status ReadTheDocs codecov ruff ruff pre-commit


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

Read The Docs

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 Documentation Status codecov SPEC 0 — Minimum Supported Dependencies pre-commit ruff

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quaxed-0.10.2-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quaxed-0.10.2.tar.gz
  • Upload date:
  • Size: 134.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for quaxed-0.10.2.tar.gz
Algorithm Hash digest
SHA256 7260533a5212a109bd61d29e7789c5d7bd1fd16a2a1ab0d2d821b47043945c2e
MD5 5707f11cae97fa44d92b3ae525c712f9
BLAKE2b-256 323d79857c170ff6ddfb5fb590a563c93837aa1e2f41c5016ccbc85e8d5c7c7b

See more details on using hashes here.

Provenance

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

Publisher: cd.yml on GalacticDynamics/quaxed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: quaxed-0.10.2-py3-none-any.whl
  • Upload date:
  • Size: 28.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for quaxed-0.10.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b8e6453ada2947c66ae62a1df9e47bcda402961318b5719de7d16d7dfe957f8a
MD5 9b6ab4b019482a52a195f9c1ed5c5ab0
BLAKE2b-256 5a099a54bd735dfefe7c02577345bd68502a9a8111c9cf41d6816c1dfcffb939

See more details on using hashes here.

Provenance

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

Publisher: cd.yml on GalacticDynamics/quaxed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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