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
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
Join Nillion community and contribute
Please join the Nillion community on Discord.
See the CONTRIBUTING file for how to contribute to nada-numpy
.
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
nada_numpy-0.5.0.tar.gz
(41.4 kB
view hashes)
Built Distribution
nada_numpy-0.5.0-py3-none-any.whl
(43.3 kB
view hashes)
Close
Hashes for nada_numpy-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff03f08f93ea7e08153ee0d3e74d1af9ab4d5a880c2d122fb67ec5dbb9627b9b |
|
MD5 | a6aca651e562d09f58ba4a49c2bb9656 |
|
BLAKE2b-256 | 13402864c75cc78d398ef2065dd08194a0f60bc2aea856074bc987d8bfc8bc55 |