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.3.tar.gz (125.4 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.3-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for quaxed-0.10.3.tar.gz
Algorithm Hash digest
SHA256 cf7b5bbe571f592736b62a6cc921593604d17e1693ea3ddd415238e9ac781581
MD5 f698d4c9740ce9eef5d9681a0bbaffc1
BLAKE2b-256 54d248d876e09a6b959bf6e55a8a833a487f57e9ae1c95bcde05b6e41eb525b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for quaxed-0.10.3.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.3-py3-none-any.whl.

File metadata

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

File hashes

Hashes for quaxed-0.10.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ee085bd777b9a38402b7871a84d2d05443d96aeb01bf11c5f84691233def1df4
MD5 61ea09598ffc14d1c77ebcb96a8b9843
BLAKE2b-256 39639f110fb56cace0d063bc3bc027ec24b8cf1349dc53c46dcf64b4657e2b14

See more details on using hashes here.

Provenance

The following attestation bundles were made for quaxed-0.10.3-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