瀏覽代碼

Merge pull request #101 from openfheorg/quah_100

added setting and getting slots capability
Ian Quah 10 月之前
父節點
當前提交
b53c5c36c5
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/lib/bindings.cpp

+ 3 - 3
src/lib/bindings.cpp

@@ -1117,13 +1117,13 @@ void bind_ciphertext(py::module &m)
         ctx_SetLevel_docs,
         py::arg("level"))
      .def("Clone", &CiphertextImpl<DCRTPoly>::Clone)
-     .def("RemoveElement", &RemoveElementWrapper, cc_RemoveElement_docs);
+     .def("RemoveElement", &RemoveElementWrapper, cc_RemoveElement_docs)
     // .def("GetHopLevel", &CiphertextImpl<DCRTPoly>::GetHopLevel)
     // .def("SetHopLevel", &CiphertextImpl<DCRTPoly>::SetHopLevel)
     // .def("GetScalingFactor", &CiphertextImpl<DCRTPoly>::GetScalingFactor)
     // .def("SetScalingFactor", &CiphertextImpl<DCRTPoly>::SetScalingFactor)
-    // .def("GetSlots", &CiphertextImpl<DCRTPoly>::GetSlots)
-    // .def("SetSlots", &CiphertextImpl<DCRTPoly>::SetSlots);
+     .def("GetSlots", &CiphertextImpl<DCRTPoly>::GetSlots)
+     .def("SetSlots", &CiphertextImpl<DCRTPoly>::SetSlots);
 }
 
 void bind_schemes(py::module &m){