plaintext_docs.h 1.9 KB

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