mirror of
https://github.com/luxfhe/docs.git
synced 2026-10-30 18:13:39 +00:00
941 B
941 B
module torus.fhe.extensions.array
Declaration of array function, to simplify creation of encrypted arrays.
function array
array(values: Any) → Union[ndarray, Tracer]
Create an encrypted array from either encrypted or clear values.
Args: values (Any): array like object compatible with numpy to construct the resulting encrypted array
Returns: Union[np.ndarray, Tracer]: Tracer that represents the operation during tracing ndarray with values otherwise