View source: R/object-accessors.R
| encode | R Documentation |
A plaintext holds a value and its encoding as a ring element. The
functions that make plaintexts encode them, and decrypt() decodes
its result, so these are for code that manipulates the element
directly.
encode(pt)
decode(
pt,
depth = NULL,
scaling_factor = NULL,
scal_tech = NULL,
execution_mode = NULL
)
pt |
A |
depth |
Integer; the noise scale degree of the ciphertext. |
scaling_factor |
Numeric; its scaling factor. |
scal_tech |
A member of ScalingTechnique. |
execution_mode |
A member of ExecutionMode. |
encode() computes the element from the value and decode() the
value from the element. The CKKS form of decode() takes what the
decoder needs to know about the ciphertext the plaintext came from;
give all four arguments or none. The result of decrypt() is
already decoded, and decoding it again does not reproduce its
value.
TRUE on success.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.