added back some example parameter sets

This commit is contained in:
Christian Mouchet
2023-11-14 15:19:21 +01:00
parent 4af19d8f57
commit 769fd833ca
5 changed files with 174 additions and 1 deletions

25
examples/example_test.go Normal file
View File

@@ -0,0 +1,25 @@
package examples
import (
"testing"
"github.com/tuneinsight/lattigo/v4/he/hefloat"
"github.com/tuneinsight/lattigo/v4/he/heint"
)
func TestExampleParams(t *testing.T) {
for _, pl := range HEIntParams {
p, err := heint.NewParametersFromLiteral(pl)
if err != nil {
t.Fatal(err)
}
p.RingQ()
}
for _, pl := range HEFloatParams {
p, err := hefloat.NewParametersFromLiteral(pl)
if err != nil {
t.Fatal(err)
}
p.RingQ()
}
}