Skip to content

Commit

Permalink
Merge branch '917-switch-to-uint32_t-phase-2' into tmp-dev-test-only
Browse files Browse the repository at this point in the history
  • Loading branch information
dsuponitskiy-duality committed Dec 16, 2024
2 parents 7c21736 + 8095cbc commit deecc94
Show file tree
Hide file tree
Showing 2 changed files with 273 additions and 343 deletions.
11 changes: 0 additions & 11 deletions src/pke/include/scheme/ckksrns/ckksrns-utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,17 +185,6 @@ std::vector<std::vector<std::vector<std::complex<double>>>> CoeffDecodingCollaps
*/
uint32_t ReduceRotation(int32_t index, uint32_t slots);

/**
* Computes parameters to ensure the encoding and decoding computations take exactly the
* specified number of levels. More specifically, it returns a vector than contains
* layers (the number of layers to collapse in one level), rows (how many such levels),
* rem (the number of layers remaining to be collapsed in one level)
*
* @param logSlots the base 2 logarithm of the number of slots.
* @param budget the allocated level budget for the computation.
*/
std::vector<uint32_t> SelectLayers(uint32_t logSlots, uint32_t budget = 4);

/**
* Computes all parameters needed for the homomorphic encoding and decoding in the bootstrapping
* operation and returns them as a vector. The returned vector's data can be accessed using
Expand Down
Loading

0 comments on commit deecc94

Please sign in to comment.