Skip to content

Latest commit

 

History

History
72 lines (35 loc) · 2.06 KB

concrete.fhe.extensions.zeros.md

File metadata and controls

72 lines (35 loc) · 2.06 KB

module concrete.fhe.extensions.zeros

Declaration of zeros and zero functions, to simplify creation of encrypted zeros.


function zeros

zeros(shape: Union[int, Tuple[int, ]]) → Union[ndarray, Tracer]

Create an encrypted array of zeros.

Args: shape (Tuple[int, ...]): shape of the array

Returns: Union[np.ndarray, Tracer]: Tracer that respresents the operation during tracing ndarray filled with zeros otherwise


function zero

zero() → Union[ndarray, Tracer]

Create an encrypted scalar with the value of zero.

Returns: Union[np.ndarray, Tracer]: Tracer that respresents the operation during tracing ndarray with zero otherwise


function zeros_like

zeros_like(array: Union[ndarray, Tracer]) → Union[ndarray, Tracer]

Create an encrypted array of zeros with the same shape as another array.

Args: array (Union[np.ndarray, Tracer]): original array

Returns: Union[np.ndarray, Tracer]: Tracer that represent the operation during tracing ndarray filled with zeros otherwise