Files
linea-monorepo/prover/crypto/ringsis/templates/partial_fft.go.tmpl
Lakshminarayanan Nandakumar 8ddd4c1d3d Prover/wizard performance monitor (#768)
* wizard runtime perf monitor

* ring-sis before revert

* sanity check successful

* rm test config file
2025-03-12 08:43:31 +00:00

19 lines
520 B
Cheetah

package ringsis_{{.ModulusDegree}}_{{.LogTwoBound}}
import (
"github.com/consensys/linea-monorepo/prover/maths/field"
)
{{- $bitPerField := 256}}
{{- $limbPerField := div $bitPerField .LogTwoBound}}
{{- $fieldPerPoly := div .ModulusDegree $limbPerField}}
{{- $numMask := pow 2 $fieldPerPoly}}
var partialFFT = []func(a, twiddles []field.Element){
{{- range $i := iterate 0 $numMask}}
partialFFT_{{$i}},
{{- end}}
}
{{range $mask := iterate 0 $numMask}}
{{partialFFT $.ModulusDegree $fieldPerPoly $mask}}
{{- end}}