Nada-Numpy is a Python library designed for algebraic operations on NumPy-like array objects on top of Nada DSL and Nillion Network.
Project description
Nada-Numpy
Nada-Numpy 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-numpy
From Sources
You can install the nada-numpy library using Poetry:
git clone https://github.com/NillionNetwork/nada-numpy.git
pip3 install ./nada-numpy
Testing
To test that the version installed works as expected, you can use poetry as follows:
poetry install
poetry run pytest
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
Built Distribution
Hashes for nada_numpy-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0961b8dbec6a08013abeee17c45bb3071a5464f4c168dadb5531f5d0e20c519c |
|
MD5 | bc8bf219a6fd58fdba8e54af58d22f71 |
|
BLAKE2b-256 | 88aa1041582aea1683298292cf2aa46d23a4c64ffe34e0c98d92a5c59d830a9d |