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

Uploaded Source

Built Distribution

quaxed-0.6.4-py3-none-any.whl (35.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for quaxed-0.6.4.tar.gz
Algorithm Hash digest
SHA256 b66122a702af0c43f4a5565b4fd530bcd93911af3aa25eed9a8ff8f88c9d0326
MD5 0a51b5d7a2e2bff07836f9cee6abdaaf
BLAKE2b-256 cd3caa18f0b95b3c99ac892f96fb99ed438cb6aaabf352c2fc71ddda84a29788

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quaxed-0.6.4-py3-none-any.whl
  • Upload date:
  • Size: 35.8 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.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 850af2fe1bebb48b687bfcd491b9ce17fadabd83fa0f869a18e86f8b5d41452c
MD5 e2b8ebca8457bd67d3e18691004c491c
BLAKE2b-256 e2118074e2f4e875f304992d7de4bd2d50193ccd9efbc4002f2b9d8033affd12

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