Skip to main content

Library for array computing

Project description

arraylib — Library for array computing in Python

The arraylib package aims to provide a standardised interface to array implementations such as NumPy, JAX, PyTorch, etc.

The standard array functions are modelled on the Array API, and should be compatible with it.

The goal of the arraylib package is to extend the standard with many of the special functions which are necessary for scientific computing.

Usage

Install the arraylib package and an array implementation, for example NumPy. Load both, then obtain an arraylib namespace by binding the numpy array namespace:

>>> import arraylib
>>> import numpy as np
>>> xp = arraylib.bind(np)
>>> xp.log
<ufunc 'log'>
>>> xp.log is np.log
True
>>> xp.sinpi(2.5)
1.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

arraylib-0.0.0.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

arraylib-0.0.0-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file arraylib-0.0.0.tar.gz.

File metadata

  • Download URL: arraylib-0.0.0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for arraylib-0.0.0.tar.gz
Algorithm Hash digest
SHA256 3cece839de8bb16028b6c5e17e056ee97d663b5efaa2ebe0488c0a58e3204a86
MD5 fd3568210d745b193d4fcb9f2b194357
BLAKE2b-256 7b02c5a3af0c47c58a3136b6ce602627b3c8338de7022575e6b27c4a49af0d2e

See more details on using hashes here.

File details

Details for the file arraylib-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: arraylib-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for arraylib-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bfc9a71edc31ebf846026b1683cdfd0df0619f46225b31bec618240ce1e8ebb6
MD5 65b5d1a7c2c4172837bac4169a063f3b
BLAKE2b-256 7cd0b8da0c283e7c60c7a5d73981660f6bea5254683310a76b8084ce7625cc63

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