Browse Source

Some code corrections (#242)

Co-authored-by: Dmitriy Suponitskiy <dsuponitskiy@dualitytech.com>
dsuponitskiy 5 months ago
parent
commit
9e185b8f84
3 changed files with 10 additions and 7 deletions
  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
 version = ''
 # The full version, including alpha/beta/rc tags
-release = '0.8.0'
+release = 'v1.3.1.0'
 
 
 # -- 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
     :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
     :type level: int
     :return: plaintext
     :rtype: Plaintext
+
 )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
 
     :param evalKeyMap: map of keys to be inserted
-    :type EvalKeyMap
+    :type evalKeyMap: EvalKeyMap
     :param keyTag: key identifier for the given key map
     :type keyTag: str
+
 )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.
     :type ccLWE: BinFHEContext
-    :param numSlotsCKKS  Number of slots in resulting CKKS ciphertext.
+    :param numSlotsCKKS:  Number of slots in resulting CKKS ciphertext.
     :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
+
 )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))
         .def("MultiAddEvalAutomorphismKeys", &CryptoContextImpl<DCRTPoly>::MultiAddEvalAutomorphismKeys,
             py::arg("evalKeyMap1"),
-            py::arg("evalKeyMap1"),
+            py::arg("evalKeyMap2"),
             py::arg("keyTag") = "",
             py::doc(cc_MultiAddEvalAutomorphismKeys_docs))
         .def("MultiAddPubKeys", &CryptoContextImpl<DCRTPoly>::MultiAddPubKeys,