Skip to main content

Nada-Numpy

GitHub License GitHub Actions Workflow Status GitHub Release

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 additional Array helpers

  • Shuffling: Our implementation shuffles a 1D array using the Benes network, which rearranges elements in a deterministic yet seemingly random order. The Benes network is commonly used in sorting and switching circuits and requires the input array length to be a power of two (e.g., 2, 4, 8, 16). The shuffled array contains the same elements as the input, just in a different order.

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-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.

Metadata

Release files for nada-numpy 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nada-numpy 0.6.0
File Size Uploaded
nada_numpy-0.6.0.tar.gz 47.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nada-numpy 0.6.0
File Interpreter ABI Platform
nada_numpy-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 97.9 kB

Release files / nada_numpy-0.6.0.tar.gz

Download URL nada_numpy-0.6.0.tar.gz
Size 47.8 kB
Tags Source
SHA-256 checksum
How to use checksums
54c935eb5b4671afb92e8d0ca9c9147ada36dc78f618e82f8430af85fd66ac93
BLAKE2b-256 checksum
How to use checksums
7fe47ebb1ad4ea4cd216cd5dce3312cf5d97aecf2f23c03a8805d2d6e197bd4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

Release files / nada_numpy-0.6.0-py3-none-any.whl

Download URL nada_numpy-0.6.0-py3-none-any.whl
Size 50.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6fa092bc8c1e7b249fc6a6466f54f2bc09bc3f0ddf5d22738463b802a1969855
BLAKE2b-256 checksum
How to use checksums
3ac0e3bb9781dfb983b2b048dc54f0bd4fa70801a16e7e9a9885739d823d2477
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page