Skip to content

Commit

Permalink
Merge pull request #11 from DreamingRaven/maxbitcount
Browse files Browse the repository at this point in the history
Added seal.CoeffModulus.MaxBitCount
  • Loading branch information
Huelse authored Mar 26, 2020
2 parents 5a034ec + f185586 commit 6626f14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ PYBIND11_MODULE(seal, m)
.def("BFVDefault",
[](std::size_t poly_modulus_degree) { return CoeffModulus::BFVDefault(poly_modulus_degree); })
.def("Create",
[](std::size_t poly_modulus_degree, std::vector<int> bit_sizes) { return CoeffModulus::Create(poly_modulus_degree, bit_sizes); });
[](std::size_t poly_modulus_degree, std::vector<int> bit_sizes) { return CoeffModulus::Create(poly_modulus_degree, bit_sizes); })
.def("MaxBitCount",
[](std::size_t poly_modulus_degree) { return CoeffModulus::MaxBitCount(poly_modulus_degree); });

// PlainModulus
py::class_<PlainModulus>(m, "PlainModulus")
Expand Down

0 comments on commit 6626f14

Please sign in to comment.