View source: R/object-accessors.R
| number_ciphertext_elements | R Documentation |
A ciphertext is a list of ring elements: two when fresh, three after a multiplication that has not been relinearized.
number_ciphertext_elements(ct)
get_elements(ct)
get_elements_mutable(ct)
set_elements(ct, elements)
set_elements_move(ct, elements)
remove_element(ct, index)
ct |
A |
elements |
A list of DCRTPoly objects. |
index |
Integer; which element to remove, counting from 1. |
number_ciphertext_elements() counts them. get_elements()
returns copies of them as a list of DCRTPoly handles, and
set_elements() replaces the elements of a ciphertext with copies
of the ones given. remove_element() deletes one.
get_elements_mutable() and set_elements_move() are the names
openfhe-python gives to the same two operations; in R, as in
Python, they exchange copies.
number_ciphertext_elements(): an integer.
get_elements() and get_elements_mutable(): a list of
DCRTPoly objects. The others return ct, invisibly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.