A simple wrapper for a pointer to a PlaintextArrayBase. This is the interface that higher-level code should use. More...
#include <EncryptedArray.h>
Public Member Functions | |
| PlaintextArray (const EncryptedArray &ea) | |
| template<class type > | |
| const PlaintextArrayDerived < type > & | getDerived (type) const |
| template<class type > | |
| PlaintextArrayDerived< type > & | getDerived (type) |
| const EncryptedArray & | getEA () const |
| Get the EA object (which is needed for the encoding/decoding routines) | |
| void | rotate (long k) |
| Rotation/shift as a linear array. | |
| void | shift (long k) |
| Non-cyclic shift with zero fill. | |
| void | encode (const vector< long > &array) |
| Encode/decode arrays into plaintext polynomials. | |
| void | encode (const vector< ZZX > &array) |
| void | decode (vector< long > &array) |
| void | decode (vector< ZZX > &array) |
| void | encode (long val) |
| Encode with the same value replicated in each slot. | |
| void | encode (const ZZX &val) |
| void | random () |
| Generate a uniformly random element. | |
| bool | equals (const PlaintextArray &other) const |
| Equality testing. | |
| bool | equals (const vector< long > &other) const |
| bool | equals (const vector< ZZX > &other) const |
| void | add (const PlaintextArray &other) |
| void | sub (const PlaintextArray &other) |
| void | mul (const PlaintextArray &other) |
| void | negate () |
| void | replicate (long i) |
| Replicate coordinate i at all coordinates. | |
| void | print (ostream &s) const |
A simple wrapper for a pointer to a PlaintextArrayBase. This is the interface that higher-level code should use.
1.8.3.1