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
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
andSecretRational
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nada_algebra-0.3.1.tar.gz
.
File metadata
- Download URL: nada_algebra-0.3.1.tar.gz
- Upload date:
- Size: 15.6 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61907e1c8fe028b2fc91745f03f3941190a7217c3b3d4866fe7660037fe298ad |
|
MD5 | ec2eb75501686c2578cae0b0185bb159 |
|
BLAKE2b-256 | f155a74e951b2af7c68e406445a08051cad80859a3f72f15f4e72d0a93b2a69b |
File details
Details for the file nada_algebra-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: nada_algebra-0.3.1-py3-none-any.whl
- Upload date:
- Size: 17.3 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d34c7088c63fbcab3af84176b29dd208bee132f3f293cba9dddbaba782f998d |
|
MD5 | 87cfc3dd0c60cc35bda49c18db8353b3 |
|
BLAKE2b-256 | c5d39ac5b2bf8bd51d486d415d07fa40e60815512ca218c37e06366ff5d7a29c |