Commit Graph

4 Commits

Author SHA1 Message Date
fb1fb6b4e9 Rm const generics (#2)
* arith: get rid of constant generics. Reason:

using constant generics was great for allocating the arrays in the
stack, which is faster, but when started to use bigger parameter values,
in some cases it was overflowing the stack. This commit removes all the
constant generics in all of the `arith` crate, which in some cases slows
a bit the performance, but allows for bigger parameter values (on the
ones that affect lengths, like N and K).

* bfv: get rid of constant generics (reason in previous commit)

* ckks: get rid of constant generics (reason in two commits ago)

* group ring params under a single struct

* gfhe: get rid of constant generics

* tfhe: get rid of constant generics

* polish & clean a bit

* add methods for encoding constants for ct-pt-multiplication
2025-08-14 18:32:43 +02:00
17b1e9ed43 add Ring trait, adapt R & Rq to it; add TR (tuple_ring) 2025-07-09 16:44:39 +02:00
267422a3b5 add arith::{complex, matrix} primitives 2025-07-04 19:44:48 +02:00
19457c98dd mv arithmetic arith 2025-06-22 19:15:14 +02:00