25 #ifndef SRC_CORE_LIB_ENCODING_COEFPACKEDENCODING_H_ 26 #define SRC_CORE_LIB_ENCODING_COEFPACKEDENCODING_H_ 28 #include <initializer_list> 32 #include "encoding/plaintext.h" 37 vector<int64_t> value;
51 vector<int64_t> coeffs)
55 vector<int64_t> coeffs)
59 vector<int64_t> coeffs)
116 return oth.value == this->value;
126 size_t i = value.size();
128 if (value[i] != 0)
break;
130 for (
size_t j = 0; j <= i; j++) out <<
' ' << value[j];
void PrintValue(std::ostream &out) const
Definition: coefpackedencoding.h:123
const vector< int64_t > & GetCoefPackedValue() const
Definition: coefpackedencoding.h:68
This class represents plaintext in the Palisade library.
Definition: plaintext.h:87
Definition: coefpackedencoding.h:36
size_t GetLength() const
Definition: coefpackedencoding.h:99
bool Decode()
Definition: coefpackedencoding.cpp:100
void SetIntVectorValue(const vector< int64_t > &val)
Definition: coefpackedencoding.h:74
bool Encode()
Definition: coefpackedencoding.cpp:61
bool CompareTo(const PlaintextImpl &other) const
Definition: coefpackedencoding.h:114
PlaintextEncodings GetEncodingType() const
Definition: coefpackedencoding.h:92
void SetLength(size_t siz)
Definition: coefpackedencoding.h:105
Definition: binfhecontext.h:36