style: typos

This commit is contained in:
lehugueni
2025-01-23 10:07:18 +01:00
parent b6c7b82f6e
commit 84bb7dd5b2
4 changed files with 4 additions and 4 deletions

View File

@@ -134,7 +134,7 @@ func main() {
encOut := pcksPhase(params, tpk, encRes, P)
// Decrypt the result with the target secret key
l.Println("> ResulPlaintextModulus:")
l.Println("> ResultPlaintextModulus:")
decryptor := rlwe.NewDecryptor(params, tsk)
ptres := bgv.NewPlaintext(params, params.MaxLevel())
elapsedDecParty := runTimed(func() {

View File

@@ -187,7 +187,7 @@ func main() {
// and returns a ciphertext with the max level of `floatParamsResidualLit`.
// CAUTION: the scale of the ciphertext MUST be equal (or very close) to params.DefaultScale()
// To equalize the scale, the function evaluator.SetScale(ciphertext, parameters.DefaultScale()) can be used at the expense of one level.
// If the ciphertext is is at level one or greater when given to the bootstrapper, this equalization is automatically done.
// If the ciphertext is at level one or greater when given to the bootstrapper, this equalization is automatically done.
fmt.Println("Bootstrapping...")
ciphertext2, err := eval.Bootstrap(ciphertext1)
if err != nil {

View File

@@ -136,7 +136,7 @@ func main() {
// Because the maximum size for the primes of the modulus Q is 60, if we want to store larger values
// with precision, we will need to reserve the first two primes.
// We get the encoding precision of the parameters in bits, which is min(53, log2(DefaultScale)).
// We get the encoding precision of the parameters in bits, which is max(53, log2(DefaultScale)).
// It is always at least 53 (double float precision).
// This precision is notably the precision used by the encoder to encode/decode values.
prec := params.EncodingPrecision() // we will need this value later

View File

@@ -12,7 +12,7 @@ import (
"github.com/tuneinsight/lattigo/v6/utils/sampling"
)
// KeySwitchProtocol is the structure storing the parameters and and precomputations for the collective key-switching protocol.
// KeySwitchProtocol is the structure storing the parameters and precomputations for the collective key-switching protocol.
type KeySwitchProtocol struct {
params rlwe.Parameters
noise ring.DistributionParameters