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

Uploaded Source

Built Distribution

quaxed-0.6.2-py3-none-any.whl (35.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quaxed-0.6.2.tar.gz
  • Upload date:
  • Size: 57.0 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.2.tar.gz
Algorithm Hash digest
SHA256 fd55db7ee2f80fee6d15c54d9d18671bdba55330fc8e61c1b49326b01664852d
MD5 dbdc032bb16453ca35e3841b2d6d11b6
BLAKE2b-256 ec3f5a04221b7b0423fcd7acaacff149511c4da29173f5fa894692bee3407c0e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quaxed-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 35.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 772a635db3c9400448904bc50ecb3c21b6310bc330a831e24452016ace33b52c
MD5 c338dfa7696e60a65e0d61ab8b4a3f19
BLAKE2b-256 3be01e13ad0c96d120dbbd583d11c7e4335fb5c77d25eebb61b236a3806b730a

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