Constructors

Array constructor functions for OpenFHE-NumPy.

This module provides functions to create FHE array from various input types, including support for block-based tensor operations.

openfhe_numpy.tensor.constructors.block_array(cc, data, batch_size=None, order=ArrayEncodingType.ROW_MAJOR, fhe_type='C', mode='tile', package=None, public_key=None, **kwargs)[source]

Construct a block‐plaintext or block‐ciphertext array from raw input.

Parameters:
Return type:

FHETensor

openfhe_numpy.tensor.constructors.array(cc, data, batch_size=None, order=ArrayEncodingType.ROW_MAJOR, fhe_type='P', mode='tile', package=None, public_key=None, **kwargs)[source]

Construct a ciphertext or plaintext FHETensor from raw input.

Parameters:
Return type:

FHETensor