|
@@ -130,12 +130,12 @@ void bind_crypto_context(py::module &m)
|
|
.def("MakePackedPlaintext", &CryptoContextImpl<DCRTPoly>::MakePackedPlaintext,
|
|
.def("MakePackedPlaintext", &CryptoContextImpl<DCRTPoly>::MakePackedPlaintext,
|
|
cc_MakePackedPlaintext_docs,
|
|
cc_MakePackedPlaintext_docs,
|
|
py::arg("value"),
|
|
py::arg("value"),
|
|
- py::arg("depth") = 1,
|
|
|
|
|
|
+ py::arg("noiseScaleDeg") = 1,
|
|
py::arg("level") = 0)
|
|
py::arg("level") = 0)
|
|
.def("MakeCoefPackedPlaintext", &CryptoContextImpl<DCRTPoly>::MakeCoefPackedPlaintext,
|
|
.def("MakeCoefPackedPlaintext", &CryptoContextImpl<DCRTPoly>::MakeCoefPackedPlaintext,
|
|
cc_MakeCoefPackedPlaintext_docs,
|
|
cc_MakeCoefPackedPlaintext_docs,
|
|
py::arg("value"),
|
|
py::arg("value"),
|
|
- py::arg("depth") = 1,
|
|
|
|
|
|
+ py::arg("noiseScaleDeg ") = 1,
|
|
py::arg("level") = 0)
|
|
py::arg("level") = 0)
|
|
// TODO (Oliveira): allow user to specify different params values
|
|
// TODO (Oliveira): allow user to specify different params values
|
|
.def("MakeCKKSPackedPlaintext", static_cast<Plaintext (CryptoContextImpl<DCRTPoly>::*)(const std::vector<std::complex<double>> &, size_t, uint32_t, const std::shared_ptr<ParmType>, usint) const>(&CryptoContextImpl<DCRTPoly>::MakeCKKSPackedPlaintext), cc_MakeCKKSPackedPlaintextComplex_docs,
|
|
.def("MakeCKKSPackedPlaintext", static_cast<Plaintext (CryptoContextImpl<DCRTPoly>::*)(const std::vector<std::complex<double>> &, size_t, uint32_t, const std::shared_ptr<ParmType>, usint) const>(&CryptoContextImpl<DCRTPoly>::MakeCKKSPackedPlaintext), cc_MakeCKKSPackedPlaintextComplex_docs,
|
|
@@ -204,7 +204,7 @@ void bind_crypto_context(py::module &m)
|
|
(&CryptoContextImpl<DCRTPoly>::EvalAdd),
|
|
(&CryptoContextImpl<DCRTPoly>::EvalAdd),
|
|
cc_EvalAddfloat_docs,
|
|
cc_EvalAddfloat_docs,
|
|
py::arg("ciphertext"),
|
|
py::arg("ciphertext"),
|
|
- py::arg("scalar"))
|
|
|
|
|
|
+ py::arg("constant"))
|
|
.def("EvalAddInPlace", static_cast<void (CryptoContextImpl<DCRTPoly>::*)(Ciphertext<DCRTPoly> &, ConstCiphertext<DCRTPoly>) const>
|
|
.def("EvalAddInPlace", static_cast<void (CryptoContextImpl<DCRTPoly>::*)(Ciphertext<DCRTPoly> &, ConstCiphertext<DCRTPoly>) const>
|
|
(&CryptoContextImpl<DCRTPoly>::EvalAddInPlace),
|
|
(&CryptoContextImpl<DCRTPoly>::EvalAddInPlace),
|
|
cc_EvalAddInPlace_docs,
|
|
cc_EvalAddInPlace_docs,
|
|
@@ -223,8 +223,8 @@ void bind_crypto_context(py::module &m)
|
|
.def("EvalAddMutable", static_cast<Ciphertext<DCRTPoly> (CryptoContextImpl<DCRTPoly>::*)(Ciphertext<DCRTPoly> &, Ciphertext<DCRTPoly> &) const>
|
|
.def("EvalAddMutable", static_cast<Ciphertext<DCRTPoly> (CryptoContextImpl<DCRTPoly>::*)(Ciphertext<DCRTPoly> &, Ciphertext<DCRTPoly> &) const>
|
|
(&CryptoContextImpl<DCRTPoly>::EvalAddMutable),
|
|
(&CryptoContextImpl<DCRTPoly>::EvalAddMutable),
|
|
cc_EvalAddMutable_docs,
|
|
cc_EvalAddMutable_docs,
|
|
- py::arg("ct1"),
|
|
|
|
- py::arg("ct2"))
|
|
|
|
|
|
+ py::arg("ciphertext1"),
|
|
|
|
+ py::arg("ciphertext2"))
|
|
.def("EvalAddMutable", static_cast<Ciphertext<DCRTPoly> (CryptoContextImpl<DCRTPoly>::*)(Ciphertext<DCRTPoly> &, Plaintext) const>
|
|
.def("EvalAddMutable", static_cast<Ciphertext<DCRTPoly> (CryptoContextImpl<DCRTPoly>::*)(Ciphertext<DCRTPoly> &, Plaintext) const>
|
|
(&CryptoContextImpl<DCRTPoly>::EvalAddMutable),
|
|
(&CryptoContextImpl<DCRTPoly>::EvalAddMutable),
|
|
cc_EvalAddMutablePlaintext_docs,
|
|
cc_EvalAddMutablePlaintext_docs,
|
|
@@ -242,8 +242,8 @@ void bind_crypto_context(py::module &m)
|
|
.def("EvalSub", static_cast<Ciphertext<DCRTPoly> (CryptoContextImpl<DCRTPoly>::*)(ConstCiphertext<DCRTPoly>, ConstCiphertext<DCRTPoly>) const>
|
|
.def("EvalSub", static_cast<Ciphertext<DCRTPoly> (CryptoContextImpl<DCRTPoly>::*)(ConstCiphertext<DCRTPoly>, ConstCiphertext<DCRTPoly>) const>
|
|
(&CryptoContextImpl<DCRTPoly>::EvalSub),
|
|
(&CryptoContextImpl<DCRTPoly>::EvalSub),
|
|
cc_EvalSub_docs,
|
|
cc_EvalSub_docs,
|
|
- py::arg("ct1"),
|
|
|
|
- py::arg("ct2"))
|
|
|
|
|
|
+ py::arg("ciphertext1"),
|
|
|
|
+ py::arg("ciphertext2"))
|
|
.def("EvalSub", static_cast<Ciphertext<DCRTPoly> (CryptoContextImpl<DCRTPoly>::*)(ConstCiphertext<DCRTPoly>, double) const>
|
|
.def("EvalSub", static_cast<Ciphertext<DCRTPoly> (CryptoContextImpl<DCRTPoly>::*)(ConstCiphertext<DCRTPoly>, double) const>
|
|
(&CryptoContextImpl<DCRTPoly>::EvalSub),
|
|
(&CryptoContextImpl<DCRTPoly>::EvalSub),
|
|
cc_EvalSubfloat_docs,
|
|
cc_EvalSubfloat_docs,
|
|
@@ -267,8 +267,8 @@ void bind_crypto_context(py::module &m)
|
|
.def("EvalSubInPlace", static_cast<void (CryptoContextImpl<DCRTPoly>::*)(Ciphertext<DCRTPoly> &, ConstCiphertext<DCRTPoly>) const>
|
|
.def("EvalSubInPlace", static_cast<void (CryptoContextImpl<DCRTPoly>::*)(Ciphertext<DCRTPoly> &, ConstCiphertext<DCRTPoly>) const>
|
|
(&CryptoContextImpl<DCRTPoly>::EvalSubInPlace),
|
|
(&CryptoContextImpl<DCRTPoly>::EvalSubInPlace),
|
|
cc_EvalSubInPlace_docs,
|
|
cc_EvalSubInPlace_docs,
|
|
- py::arg("ct1"),
|
|
|
|
- py::arg("ct2"))
|
|
|
|
|
|
+ py::arg("ciphertext1"),
|
|
|
|
+ py::arg("ciphertext2"))
|
|
.def("EvalSubInPlace", static_cast<void (CryptoContextImpl<DCRTPoly>::*)(Ciphertext<DCRTPoly> &, double) const>
|
|
.def("EvalSubInPlace", static_cast<void (CryptoContextImpl<DCRTPoly>::*)(Ciphertext<DCRTPoly> &, double) const>
|
|
(&CryptoContextImpl<DCRTPoly>::EvalSubInPlace),
|
|
(&CryptoContextImpl<DCRTPoly>::EvalSubInPlace),
|
|
cc_EvalSubInPlacefloat_docs,
|
|
cc_EvalSubInPlacefloat_docs,
|
|
@@ -282,8 +282,8 @@ void bind_crypto_context(py::module &m)
|
|
.def("EvalSubMutable", static_cast<Ciphertext<DCRTPoly> (CryptoContextImpl<DCRTPoly>::*)(Ciphertext<DCRTPoly> &, Ciphertext<DCRTPoly> &) const>
|
|
.def("EvalSubMutable", static_cast<Ciphertext<DCRTPoly> (CryptoContextImpl<DCRTPoly>::*)(Ciphertext<DCRTPoly> &, Ciphertext<DCRTPoly> &) const>
|
|
(&CryptoContextImpl<DCRTPoly>::EvalSubMutable),
|
|
(&CryptoContextImpl<DCRTPoly>::EvalSubMutable),
|
|
cc_EvalSubMutable_docs,
|
|
cc_EvalSubMutable_docs,
|
|
- py::arg("ct1"),
|
|
|
|
- py::arg("ct2"))
|
|
|
|
|
|
+ py::arg("ciphertext1"),
|
|
|
|
+ py::arg("ciphertext2"))
|
|
.def("EvalSubMutable", static_cast<Ciphertext<DCRTPoly> (CryptoContextImpl<DCRTPoly>::*)(Ciphertext<DCRTPoly> &, Plaintext) const>
|
|
.def("EvalSubMutable", static_cast<Ciphertext<DCRTPoly> (CryptoContextImpl<DCRTPoly>::*)(Ciphertext<DCRTPoly> &, Plaintext) const>
|
|
(&CryptoContextImpl<DCRTPoly>::EvalSubMutable),
|
|
(&CryptoContextImpl<DCRTPoly>::EvalSubMutable),
|
|
cc_EvalSubMutablePlaintext_docs,
|
|
cc_EvalSubMutablePlaintext_docs,
|
|
@@ -301,8 +301,8 @@ void bind_crypto_context(py::module &m)
|
|
.def("EvalMult", static_cast<Ciphertext<DCRTPoly> (CryptoContextImpl<DCRTPoly>::*)(ConstCiphertext<DCRTPoly>, ConstCiphertext<DCRTPoly>) const>
|
|
.def("EvalMult", static_cast<Ciphertext<DCRTPoly> (CryptoContextImpl<DCRTPoly>::*)(ConstCiphertext<DCRTPoly>, ConstCiphertext<DCRTPoly>) const>
|
|
(&CryptoContextImpl<DCRTPoly>::EvalMult),
|
|
(&CryptoContextImpl<DCRTPoly>::EvalMult),
|
|
cc_EvalMult_docs,
|
|
cc_EvalMult_docs,
|
|
- py::arg("ct1"),
|
|
|
|
- py::arg("ct2"))
|
|
|
|
|
|
+ py::arg("ciphertext1"),
|
|
|
|
+ py::arg("ciphertext2"))
|
|
.def("EvalMult", static_cast<Ciphertext<DCRTPoly> (CryptoContextImpl<DCRTPoly>::*)(ConstCiphertext<DCRTPoly>, double) const>
|
|
.def("EvalMult", static_cast<Ciphertext<DCRTPoly> (CryptoContextImpl<DCRTPoly>::*)(ConstCiphertext<DCRTPoly>, double) const>
|
|
(&CryptoContextImpl<DCRTPoly>::EvalMult),
|
|
(&CryptoContextImpl<DCRTPoly>::EvalMult),
|
|
cc_EvalMultfloat_docs,
|
|
cc_EvalMultfloat_docs,
|
|
@@ -326,8 +326,8 @@ void bind_crypto_context(py::module &m)
|
|
.def("EvalMultMutable", static_cast<Ciphertext<DCRTPoly> (CryptoContextImpl<DCRTPoly>::*)(Ciphertext<DCRTPoly> &, Ciphertext<DCRTPoly> &) const>
|
|
.def("EvalMultMutable", static_cast<Ciphertext<DCRTPoly> (CryptoContextImpl<DCRTPoly>::*)(Ciphertext<DCRTPoly> &, Ciphertext<DCRTPoly> &) const>
|
|
(&CryptoContextImpl<DCRTPoly>::EvalMultMutable),
|
|
(&CryptoContextImpl<DCRTPoly>::EvalMultMutable),
|
|
cc_EvalMultMutable_docs,
|
|
cc_EvalMultMutable_docs,
|
|
- py::arg("ct1"),
|
|
|
|
- py::arg("ct2"))
|
|
|
|
|
|
+ py::arg("ciphertext1"),
|
|
|
|
+ py::arg("ciphertext2"))
|
|
.def("EvalMultMutable", static_cast<Ciphertext<DCRTPoly> (CryptoContextImpl<DCRTPoly>::*)(Ciphertext<DCRTPoly> &, Plaintext) const>
|
|
.def("EvalMultMutable", static_cast<Ciphertext<DCRTPoly> (CryptoContextImpl<DCRTPoly>::*)(Ciphertext<DCRTPoly> &, Plaintext) const>
|
|
(&CryptoContextImpl<DCRTPoly>::EvalMultMutable),
|
|
(&CryptoContextImpl<DCRTPoly>::EvalMultMutable),
|
|
cc_EvalMultMutablePlaintext_docs,
|
|
cc_EvalMultMutablePlaintext_docs,
|
|
@@ -340,21 +340,21 @@ void bind_crypto_context(py::module &m)
|
|
py::arg("ciphertext"))
|
|
py::arg("ciphertext"))
|
|
.def("EvalMultMutableInPlace", &CryptoContextImpl<DCRTPoly>::EvalMultMutableInPlace,
|
|
.def("EvalMultMutableInPlace", &CryptoContextImpl<DCRTPoly>::EvalMultMutableInPlace,
|
|
cc_EvalMultMutableInPlace_docs,
|
|
cc_EvalMultMutableInPlace_docs,
|
|
- py::arg("ct1"),
|
|
|
|
- py::arg("ct2"))
|
|
|
|
|
|
+ py::arg("ciphertext1"),
|
|
|
|
+ py::arg("ciphertext2"))
|
|
.def("EvalSquare", &CryptoContextImpl<DCRTPoly>::EvalSquare,
|
|
.def("EvalSquare", &CryptoContextImpl<DCRTPoly>::EvalSquare,
|
|
cc_EvalSquare_docs,
|
|
cc_EvalSquare_docs,
|
|
- py::arg("ct"))
|
|
|
|
|
|
+ py::arg("ciphertext"))
|
|
.def("EvalSquareMutable", &CryptoContextImpl<DCRTPoly>::EvalSquareMutable,
|
|
.def("EvalSquareMutable", &CryptoContextImpl<DCRTPoly>::EvalSquareMutable,
|
|
cc_EvalSquareMutable_docs,
|
|
cc_EvalSquareMutable_docs,
|
|
- py::arg("ct"))
|
|
|
|
|
|
+ py::arg("ciphertext"))
|
|
.def("EvalSquareInPlace", &CryptoContextImpl<DCRTPoly>::EvalSquareInPlace,
|
|
.def("EvalSquareInPlace", &CryptoContextImpl<DCRTPoly>::EvalSquareInPlace,
|
|
cc_EvalSquareInPlace_docs,
|
|
cc_EvalSquareInPlace_docs,
|
|
- py::arg("ct"))
|
|
|
|
|
|
+ py::arg("ciphertext"))
|
|
.def("EvalMultNoRelin", &CryptoContextImpl<DCRTPoly>::EvalMultNoRelin,
|
|
.def("EvalMultNoRelin", &CryptoContextImpl<DCRTPoly>::EvalMultNoRelin,
|
|
cc_EvalMultNoRelin_docs,
|
|
cc_EvalMultNoRelin_docs,
|
|
- py::arg("ct1"),
|
|
|
|
- py::arg("ct2"))
|
|
|
|
|
|
+ py::arg("ciphertext1"),
|
|
|
|
+ py::arg("ciphertext2"))
|
|
.def("Relinearize", &CryptoContextImpl<DCRTPoly>::Relinearize,
|
|
.def("Relinearize", &CryptoContextImpl<DCRTPoly>::Relinearize,
|
|
cc_Relinearize_docs,
|
|
cc_Relinearize_docs,
|
|
py::arg("ciphertext"))
|
|
py::arg("ciphertext"))
|
|
@@ -363,14 +363,14 @@ void bind_crypto_context(py::module &m)
|
|
py::arg("ciphertext"))
|
|
py::arg("ciphertext"))
|
|
.def("EvalMultAndRelinearize", &CryptoContextImpl<DCRTPoly>::EvalMultAndRelinearize,
|
|
.def("EvalMultAndRelinearize", &CryptoContextImpl<DCRTPoly>::EvalMultAndRelinearize,
|
|
cc_EvalMultAndRelinearize_docs,
|
|
cc_EvalMultAndRelinearize_docs,
|
|
- py::arg("ct1"),
|
|
|
|
- py::arg("ct2"))
|
|
|
|
|
|
+ py::arg("ciphertext1"),
|
|
|
|
+ py::arg("ciphertext2"))
|
|
.def("EvalNegate", &CryptoContextImpl<DCRTPoly>::EvalNegate,
|
|
.def("EvalNegate", &CryptoContextImpl<DCRTPoly>::EvalNegate,
|
|
cc_EvalNegate_docs,
|
|
cc_EvalNegate_docs,
|
|
- py::arg("ct"))
|
|
|
|
|
|
+ py::arg("ciphertext"))
|
|
.def("EvalNegateInPlace", &CryptoContextImpl<DCRTPoly>::EvalNegateInPlace,
|
|
.def("EvalNegateInPlace", &CryptoContextImpl<DCRTPoly>::EvalNegateInPlace,
|
|
cc_EvalNegateInPlace_docs,
|
|
cc_EvalNegateInPlace_docs,
|
|
- py::arg("ct"))
|
|
|
|
|
|
+ py::arg("ciphertext"))
|
|
.def("EvalLogistic", &CryptoContextImpl<DCRTPoly>::EvalLogistic,
|
|
.def("EvalLogistic", &CryptoContextImpl<DCRTPoly>::EvalLogistic,
|
|
cc_EvalLogistic_docs,
|
|
cc_EvalLogistic_docs,
|
|
py::arg("ciphertext"),
|
|
py::arg("ciphertext"),
|