Skip to content

Commit

Permalink
Update simple-ckks-bootstrapping.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
yspolyakov authored Dec 21, 2023
1 parent 184797f commit aaf9d50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pke/examples/simple-ckks-bootstrapping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ void SimpleBootstrapExample() {
*/
std::vector<uint32_t> levelBudget = {4, 4};

// Note that the actual number of levels reported below will be levelsAvailableAfterBootstrap + 1 because an additional level
// Note that the actual number of levels avalailable after bootstrapping before next bootstrapping
// will be levelsAvailableAfterBootstrap - 1 because an additional level
// is used for scaling the ciphertext before next bootstrapping (in 64-bit CKKS bootstrapping)
uint32_t levelsAvailableAfterBootstrap = 10;
usint depth = levelsAvailableAfterBootstrap + FHECKKSRNS::GetBootstrapDepth(levelBudget, secretKeyDist);
Expand Down

0 comments on commit aaf9d50

Please sign in to comment.