Learn R Programming

openfhe.R (version 1.6.1)

clone: Copy a ciphertext

Description

clone() returns a deep copy: a new ciphertext with its own elements, which later in-place operations on the original do not change. clone_empty() returns a ciphertext with the same context, key tag and encoding but no elements.

Usage

clone(x, ...)

clone_empty(x)

Value

A Ciphertext.

Arguments

x

A Ciphertext.

...

Reserved for future method-specific arguments.

Details

Assigning a ciphertext to another name in R does not copy it; both names refer to one C++ object.