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

Uploaded Source

Built Distribution

quaxed-0.6.3-py3-none-any.whl (35.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quaxed-0.6.3.tar.gz
  • Upload date:
  • Size: 56.8 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.3.tar.gz
Algorithm Hash digest
SHA256 78572c4c72aa3540f37bd0a1392b039845625fc457e76c879dd396a4eecfe920
MD5 b799392cb8718b93e1bffbbb62e8500e
BLAKE2b-256 33286416fd66154d7a078e010e9813d701f98b6eacfb619f384d735d0a28c047

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quaxed-0.6.3-py3-none-any.whl
  • Upload date:
  • Size: 35.5 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 00cc494e1cd21b49a74e47f5da8b8f59fb1abf58e14044d3191e3a5b8acd7dd7
MD5 7f753126fa5ca10f6930c664e393b6f0
BLAKE2b-256 2fb57175bb9ed6e1a27b6d880687ce879faf6a975aa65902d39b82ecb033d17a

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