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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: quaxed-0.5.2.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.2.tar.gz
Algorithm Hash digest
SHA256 178baca756f7a9fb946d1cd598dd3dd256cf113f2f7377f675d316ba807fa018
MD5 1931c3000ab472c539dae751ba81b367
BLAKE2b-256 5e7d161f6170083004690e0f5527f2c9aafab858b881147561c35fc54739147e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quaxed-0.5.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bd6c1a36e6786eccef6459b0e1c685e47f726bcb43a9659f06b00ba4cff5072f
MD5 5cfdd45de63a468e5258f76620d2179a
BLAKE2b-256 1ffbf7d0df34c9d1fbb1560c9211bb6edffc4971856b3c1599c0581b9e6dfcaa

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