Просмотр исходного кода

Some code corrections (#242)

Co-authored-by: Dmitriy Suponitskiy <dsuponitskiy@dualitytech.com>
dsuponitskiy 9 месяцев назад
Родитель
Сommit
9e185b8f84
3 измененных файлов с 10 добавлено и 7 удалено
  1. 1 1
      docs/conf.py
  2. 8 5
      src/include/docstrings/cryptocontext_docs.h
  3. 1 1
      src/lib/bindings.cpp

+ 1 - 1
docs/conf.py

@@ -26,7 +26,7 @@ author = 'Yuriy Polyakov, Ian Quah, Rener Oliveira, and Matthew Triplett.'
 # The short X.Y version
 # The short X.Y version
 version = ''
 version = ''
 # The full version, including alpha/beta/rc tags
 # The full version, including alpha/beta/rc tags
-release = '0.8.0'
+release = 'v1.3.1.0'
 
 
 
 
 # -- General configuration ---------------------------------------------------
 # -- General configuration ---------------------------------------------------

+ 8 - 5
src/include/docstrings/cryptocontext_docs.h

@@ -153,12 +153,13 @@ const char* cc_MakeCoefPackedPlaintext_docs = R"pbdoc(
 
 
     :param value: vector of signed integers mod t
     :param value: vector of signed integers mod t
     :type value: List[int]
     :type value: List[int]
-    :param noiseScaleDeg :  is degree of the scaling factor to encode the plaintext at
-    :type noiseScaleDeg : int
+    :param noiseScaleDeg: is degree of the scaling factor to encode the plaintext at
+    :type noiseScaleDeg: int
     :param level: is the level to encode the plaintext at
     :param level: is the level to encode the plaintext at
     :type level: int
     :type level: int
     :return: plaintext
     :return: plaintext
     :rtype: Plaintext
     :rtype: Plaintext
+
 )pbdoc";
 )pbdoc";
 
 
 const char* cc_MakeCKKSPackedPlaintextComplex_docs = R"pbdoc(
 const char* cc_MakeCKKSPackedPlaintextComplex_docs = R"pbdoc(
@@ -1179,9 +1180,10 @@ const char* cc_InsertEvalAutomorphismKey_docs = R"pbdoc(
     Add the given map of keys to the map, replacing the existing map if there is one
     Add the given map of keys to the map, replacing the existing map if there is one
 
 
     :param evalKeyMap: map of keys to be inserted
     :param evalKeyMap: map of keys to be inserted
-    :type EvalKeyMap
+    :type evalKeyMap: EvalKeyMap
     :param keyTag: key identifier for the given key map
     :param keyTag: key identifier for the given key map
     :type keyTag: str
     :type keyTag: str
+
 )pbdoc";
 )pbdoc";
 
 
 const char* cc_EvalSum_docs = R"pbdoc(
 const char* cc_EvalSum_docs = R"pbdoc(
@@ -1376,10 +1378,11 @@ const char* cc_EvalFHEWtoCKKSSetup_docs = R"pbdoc(
 
 
     :param ccLWE: Source FHEW crypto context.
     :param ccLWE: Source FHEW crypto context.
     :type ccLWE: BinFHEContext
     :type ccLWE: BinFHEContext
-    :param numSlotsCKKS  Number of slots in resulting CKKS ciphertext.
+    :param numSlotsCKKS:  Number of slots in resulting CKKS ciphertext.
     :type numSlotsCKKS: int
     :type numSlotsCKKS: int
-    :param logQ:  Ciphertext modulus size in FHEW (for high precision).
+    :param logQ: Ciphertext modulus size in FHEW (for high precision).
     :type logQ: int
     :type logQ: int
+
 )pbdoc";
 )pbdoc";
 
 
 const char* cc_EvalFHEWtoCKKSKeyGen_docs = R"pbdoc(
 const char* cc_EvalFHEWtoCKKSKeyGen_docs = R"pbdoc(

+ 1 - 1
src/lib/bindings.cpp

@@ -779,7 +779,7 @@ void bind_crypto_context(py::module &m) {
             py::doc(cc_MultiEvalSumKeyGen_docs))
             py::doc(cc_MultiEvalSumKeyGen_docs))
         .def("MultiAddEvalAutomorphismKeys", &CryptoContextImpl<DCRTPoly>::MultiAddEvalAutomorphismKeys,
         .def("MultiAddEvalAutomorphismKeys", &CryptoContextImpl<DCRTPoly>::MultiAddEvalAutomorphismKeys,
             py::arg("evalKeyMap1"),
             py::arg("evalKeyMap1"),
-            py::arg("evalKeyMap1"),
+            py::arg("evalKeyMap2"),
             py::arg("keyTag") = "",
             py::arg("keyTag") = "",
             py::doc(cc_MultiAddEvalAutomorphismKeys_docs))
             py::doc(cc_MultiAddEvalAutomorphismKeys_docs))
         .def("MultiAddPubKeys", &CryptoContextImpl<DCRTPoly>::MultiAddPubKeys,
         .def("MultiAddPubKeys", &CryptoContextImpl<DCRTPoly>::MultiAddPubKeys,