Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/include/docstrings/plaintext_docs.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,13 @@ const char* ptx_GetCKKSPackedValue_docs = R"pbdoc(
)pbdoc";


//GetRealPackedValue
const char* ptx_GetRealPackedValue_docs = R"pbdoc(
Get the real component of the packed value of the plaintext for CKKS-based plaintexts.

:return: The real-component of the packed value of the plaintext.
:rtype: List[float]
)pbdoc";


#endif // PLAINTEXT_DOCSTRINGS_H
3 changes: 3 additions & 0 deletions src/lib/bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,9 @@ void bind_encodings(py::module &m)
ptx_Decode_docs)
.def("GetCKKSPackedValue", &PlaintextImpl::GetCKKSPackedValue,
ptx_GetCKKSPackedValue_docs)

.def("GetRealPackedValue", &PlaintextImpl::GetRealPackedValue,
ptx_GetRealPackedValue_docs)
.def("__repr__", [](const PlaintextImpl &p)
{
std::stringstream ss;
Expand Down