Commit b9bdf4d
committed
Fix evaluation of linear functions with
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.EvalPoly
1 parent aa39198 commit b9bdf4d
File tree
2 files changed
+19
-2
lines changed- src/pke
- lib/scheme/ckksrns
- unittest/utckksrns
2 files changed
+19
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
334 | 337 | | |
335 | | - | |
336 | | - | |
337 | 338 | | |
338 | 339 | | |
339 | 340 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1801 | 1801 | | |
1802 | 1802 | | |
1803 | 1803 | | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
1804 | 1807 | | |
1805 | 1808 | | |
1806 | 1809 | | |
| |||
1819 | 1822 | | |
1820 | 1823 | | |
1821 | 1824 | | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
1822 | 1828 | | |
1823 | 1829 | | |
1824 | 1830 | | |
| |||
1878 | 1884 | | |
1879 | 1885 | | |
1880 | 1886 | | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
1881 | 1897 | | |
1882 | 1898 | | |
1883 | 1899 | | |
| |||
0 commit comments