plaintext_docs.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #ifndef PLAINTEXT_DOCSTRINGS_H
  2. #define PLAINTEXT_DOCSTRINGS_H
  3. // GetScalingFactor
  4. const char* ptx_GetScalingFactor_docs = R"doc(
  5. Get the scaling factor of the plaintext for CKKS-based plaintexts.
  6. :return: The scaling factor of the plaintext.
  7. :rtype: float
  8. )doc";
  9. // SetScalingFactor
  10. const char* ptx_SetScalingFactor_docs = R"pbdoc(
  11. Set the scaling factor of the plaintext for CKKS-based plaintexts.
  12. :param sf: The scaling factor to set.
  13. :type sf: float
  14. )pbdoc";
  15. // GetLength
  16. const char* ptx_GetLength_docs = R"pbdoc(
  17. Get method to return the length of the plaintext.
  18. :return: The length of the plaintext in terms of the number of bits.
  19. :rtype: int
  20. )pbdoc";
  21. // GetSchemeID
  22. const char* ptx_GetSchemeID_docs = R"pbdoc(
  23. Get the encryption technique of the plaintext for BFV-based plaintexts.
  24. :return: The scheme ID of the plaintext.
  25. :rtype: SCHEME
  26. )pbdoc";
  27. // SetLength
  28. const char* ptx_SetLength_docs = R"pbdoc(
  29. Resize the plaintext; only works for plaintexts that support a resizable vector (coefpacked).
  30. :param newSize: The new size of the plaintext.
  31. :type newSize: int
  32. )pbdoc";
  33. // IsEncoded
  34. const char* ptx_IsEncoded_docs = R"pbdoc(
  35. Check if the plaintext is encoded.
  36. :return: True if the plaintext is encoded, False otherwise.
  37. :rtype: bool
  38. )pbdoc";
  39. // GetLogPrecision
  40. const char* ptx_GetLogPrecision_docs = R"pbdoc(
  41. Get the log of the plaintext precision.
  42. :return: The log of the plaintext precision.
  43. :rtype: float
  44. )pbdoc";
  45. // Encode
  46. const char* ptx_Encode_docs = R"pbdoc(
  47. Encode the plaintext into a polynomial.
  48. )pbdoc";
  49. // Decode
  50. const char* ptx_Decode_docs = R"pbdoc(
  51. Decode the polynomial into a plaintext.
  52. )pbdoc";
  53. // GetCKKSPackedValue
  54. const char* ptx_GetCKKSPackedValue_docs = R"pbdoc(
  55. Get the packed value of the plaintext for CKKS-based plaintexts.
  56. :return: The packed value of the plaintext.
  57. :rtype: List[complex]
  58. )pbdoc";
  59. #endif // PLAINTEXT_DOCSTRINGS_H