command
Version:
v2.5.0
Opens a new window with list of versions in this module.
Published: Jun 17, 2024
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Key-Takeaway
ICICLE
provides Golang bindings to CUDA-accelerated C++ implementation of Number Theoretic Transform.
Usage
err := Ntt(
/* input slice */ scalars,
/* NTT Direction */ core.KForward,
/* NTT Configuration */ &cfg,
/* output slice */ result)
In this example we use the BN254
and BLS12377
fields.
What's in this example
- Define the size of NTT.
- Generate random inputs
- Set up the domain.
- Configure NTT
- Execute NTT on-device
- Move the result on host
Running the example:
go run main.go
[!NOTE]
The default size is 2^20. You can change this by passing the -s <size>
option. To change the size to 2^23, run the example like this:
go run main.go -s=23
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.