From 17667c18a45860068adaff9a69de9280c62e7f5d Mon Sep 17 00:00:00 2001 From: Hwang In Tak Date: Wed, 28 Aug 2024 07:48:52 +0000 Subject: [PATCH] docs: Fix poly docs --- math/poly/fourier_evaluator.go | 5 ++--- math/poly/poly_evaluator.go | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/math/poly/fourier_evaluator.go b/math/poly/fourier_evaluator.go index 7ad9a68..3cac225 100644 --- a/math/poly/fourier_evaluator.go +++ b/math/poly/fourier_evaluator.go @@ -8,12 +8,11 @@ import ( "github.com/sp301415/tfhe-go/math/vec" ) -// FourierEvaluator calculates algorithms related to FFT, -// most notably the polynomial multiplication. +// FourierEvaluator computes polynomial algorithms over the Fourier domain. // // Operations usually take two forms: for example, // - Add(fp0, fp1) adds fp0, fp1, allocates a new polynomial to store the result and returns it. -// - AddAssign(fp0, fp1, fpOut) adds fp0, fp1 and writes the result to pre-allocated pOut without returning. +// - AddAssign(fp0, fp1, fpOut) adds fp0, fp1 and writes the result to pre-allocated fpOut without returning. // // Note that in most cases, fp0, fp1, and fpOut can overlap. // However, for operations that cannot, InPlace methods are implemented separately. diff --git a/math/poly/poly_evaluator.go b/math/poly/poly_evaluator.go index 0089683..b7f0279 100644 --- a/math/poly/poly_evaluator.go +++ b/math/poly/poly_evaluator.go @@ -16,7 +16,7 @@ const ( MaxDegree = 1 << 30 ) -// Evaluator calculates polynomial algorithms. +// Evaluator computes polynomial algorithms over the coefficient domain. // // Operations usually take two forms: for example, // - Add(p0, p1) adds p0, p1, allocates a new polynomial to store the result and returns it.