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
RationalandSecretRationalallows 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
Hashes for nada_algebra-0.3.4-py3-none-any.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | b9ac86f35b5ed29b12439c9aacf929287a6eafcbd5075ff51f05b25354794117 |
|
| MD5 | 50b8d6d79c342fd49aee5ef2f3dda309 |
|
| BLAKE2b-256 | 1e2e008776939c153f1d5ade434611ff050d59a9015a4df570b6e1acbe1601c0 |