Skip to main content

Array-API JAX compatibility

Project description

quaxed

Actions Status Documentation Status

PyPI version Conda-Forge PyPI platforms

DOI

Quaxed wraps jax libraries (using quax) to enable using those libraries with custom array-ish objects, not only jax arrays.

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 qnp  # this is quaxify(jax.numpy)

# As an example, let's import an array-ish object
>>> from unxt import Quantity
>>> x = Quantity(2, "km")
>>> qnp.square(w)
Quantity['area'](Array(4, dtype=int64, weak_type=True), unit='km2')

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

Uploaded Source

Built Distribution

quaxed-0.4.7-py3-none-any.whl (30.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quaxed-0.4.7.tar.gz
  • Upload date:
  • Size: 43.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for quaxed-0.4.7.tar.gz
Algorithm Hash digest
SHA256 686cf1a23dfd6297594a80c5a1286f963ea49b5678dd7661500b6d3d5a3eb99c
MD5 2f77c559c3cf74966a68ebf7abe8389c
BLAKE2b-256 da7f4a71efa618288e85174b08f468f1a167f6fdfc63a20d151b729c6ceace5f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quaxed-0.4.7-py3-none-any.whl
  • Upload date:
  • Size: 30.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for quaxed-0.4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 fe42e5b88a508361564e8d768d1ac9112693f8a1c7ca75f72953ea10d9f6dd1f
MD5 5a2d9a6113c03d2f5cec9063fcb08d1a
BLAKE2b-256 c3703c555156518913f652533c387ac4de909e559f801e64377f0584d978fd2b

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