Skip to content

Fix evaluation of linear functions with EvalPoly#1100

Merged
dsuponitskiy merged 1 commit intodevfrom
issue-1096
Dec 9, 2025
Merged

Fix evaluation of linear functions with EvalPoly#1100
dsuponitskiy merged 1 commit intodevfrom
issue-1096

Conversation

@pascoec
Copy link
Collaborator

@pascoec pascoec commented Dec 5, 2025

The internalEvalPolyLinearWithPrecomp contained an off-by-one error that caused it to throw an exception when the polynomial to evaluate was a linear function. This patch fixes that mistake, and adds a test that evaluates a linear polynomial on a CKKS ciphertext.

Bug discovered and patched at AccelCom, Barcelona Supercomputing Center.

The `internalEvalPolyLinearWithPrecomp` contained an off-by-one error
that caused it to throw an exception when the polynomial to evaluate was
a linear function. This patch fixes that mistake, and adds a test that
evaluates a linear polynomial on a CKKS ciphertext.

Bug discovered and patched at AccelCom, Barcelona Supercomputing Center.
@pascoec pascoec added this to the Release 1.5.0 milestone Dec 5, 2025
@pascoec pascoec requested a review from dsuponitskiy December 5, 2025 19:41
@pascoec pascoec self-assigned this Dec 5, 2025
@pascoec pascoec added the bug Something isn't working label Dec 5, 2025
@pascoec pascoec linked an issue Dec 5, 2025 that may be closed by this pull request
@dsuponitskiy dsuponitskiy merged commit 68bda71 into dev Dec 9, 2025
19 checks passed
@dsuponitskiy dsuponitskiy deleted the issue-1096 branch December 9, 2025 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot evaluate linear functions using EvalPoly

3 participants