Skip to main content

A Python package for aliased function dispatching to multiple array libraries

Project description

arraylias

License

This repo is still in the early stages of development, there will be breaking API changes

Arraylias is an open-source Python library providing single-dispatching tools centred around the construction of an aliased module. Aliased modules are built by initially registering "libraries" consisting of a collection of types, then registering different versions of a given function in the aliased module for each underlying type library. When using the aliased module, function calls are automatically dispatched to version of the function for the correct library based on the type of the first argument.

Arraylias contains default pre-built aliased versions of both NumPy and Scipy, with additional registration of the JAX and Tensorflow array libraries. This enables writing NumPy and Scipy like code that will that will execute on NumPy, JAX, and Tensorflow array objects as if it had been written in the respective native libraries. If necessary, these default aliases can be further extended to fit the needs of the application.

Installation

Arraylias is installed by using pip:

pip install arraylias

Contribution Guidelines

If you'd like to contribute to Arraylias, please take a look at our contribution guidelines. This project adheres to Qiskit's code of conduct. By participating, you are expected to uphold this code.

We use GitHub issues for tracking requests and bugs. For questions that are more suited for a forum we use the Qiskit tag in the Stack Exchange.

Authors and Citation

License

Apache License 2.0

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

arraylias-0.1.0.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

arraylias-0.1.0-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file arraylias-0.1.0.tar.gz.

File metadata

  • Download URL: arraylias-0.1.0.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for arraylias-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f4f42f9ffd290154731c7e95a7226798eaa415a4a598777d24ec554d46b318fd
MD5 8d4eb2abcf81c6f9c16a98230f0a0f37
BLAKE2b-256 eb93dec931961a225998610289fa62c743d16b145ee3b2ecbc672b800b4dbb98

See more details on using hashes here.

File details

Details for the file arraylias-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: arraylias-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for arraylias-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9c811a57383a999dfc364ee0f12f0f028a3e962154cbce4ee132bed8f6154f8
MD5 4ebe9ec513f65b26b840d29bbe88c2f4
BLAKE2b-256 6e65f0c83ab7d36a6b18f9834e79e1f9f68d1c8ffb48c6ecd60633f14fe61f2f

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