Skip to main content

Nada-Algebra is a Python library designed for algebraic operations on NumPy-like array objects on top of Nada DSL and Nillion Network.

Project description

Nada-Algebra

GitHub License GitHub Actions Workflow Status

Nada-Algebra is a Python library designed for algebraic operations on NumPy-like array objects on top of Nada DSL and Nillion Network. It provides a simple and intuitive interface for performing various algebraic computations, including dot products, element-wise operations, and stacking operations, while supporting broadcasting similar to NumPy arrays.

Features

Use Numpy Array Features

  • Dot Product: Compute the dot product between two NadaArray objects.
  • Element-wise Operations: Perform element-wise addition, subtraction, multiplication, and division with broadcasting support.
  • Stacking: Horizontally and vertically stack arrays.

Use Decimal Numbers in Nada

  • Rational Number Support: Our implementation of Rational and SecretRational allows the use of simplified implementations of decimal numbers on top of Nillion.

Installation

Using pip

pip install nada-algebra

From Sources

You can install the nada-algebra library using Poetry:

git clone https://github.com/NillionNetwork/nada-algebra.git
pip3 install poetry
poetry install nada-algebra

License

This project is licensed under the Apache2 License. See the LICENSE file for details.

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

nada_algebra-0.3.3.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

nada_algebra-0.3.3-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file nada_algebra-0.3.3.tar.gz.

File metadata

  • Download URL: nada_algebra-0.3.3.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.5.0-1021-azure

File hashes

Hashes for nada_algebra-0.3.3.tar.gz
Algorithm Hash digest
SHA256 99314f2d3fd17160436ded762d4ff8b6c4e879fcc60468d497768d6161cf3a98
MD5 2fa4af0ce3da71650847a41cdfd90cfa
BLAKE2b-256 5976b3e0a0daeab10eaf9eaee5f0a6d80d5ee5caa3ef7c0256afe7fafb60c88c

See more details on using hashes here.

File details

Details for the file nada_algebra-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: nada_algebra-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.5.0-1021-azure

File hashes

Hashes for nada_algebra-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d5590a7e5a535df96bcc4fbe58dc8e5200bfe620368a6248f3bdf473f5f7e0da
MD5 89657ac7d9e9fb1214d195ded7af95c1
BLAKE2b-256 3360e1277bcd4b92f0961b02d2edfa0f0cdaceffd8aa87eb25e46533d58c6b16

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