PTileTensor#

class PTileTensor#

A plaintext tile tensor. A tile tensor is an data structure for storing tensors (multiply dimensional arrays, e.g., vectors, matrices, or higher dimensional arrays) in a set of fixed size tiles, in this case plaintexts.

get_chain_index(self: pyhelayers.PTileTensor) int#

Returns chain index of tiles. They are maintained to have equal chain index.

get_reduce_chain_index(self: pyhelayers.PTileTensor) pyhelayers.PTileTensor#

Returns the result of reducing chain indexes of every PTile.

get_set_chain_index(*args, **kwargs)#

Overloaded function.

  1. get_set_chain_index(self: pyhelayers.PTileTensor, other: pyhelayers.PTileTensor) -> pyhelayers.PTileTensor

    Returns the result of Calling corresponding function for every PTile.

    param other:

    PTileTensor to get chain index from.

    type other:

    PTileTensor

  2. get_set_chain_index(self: pyhelayers.PTileTensor, chain_index: int) -> pyhelayers.PTileTensor

    Returns the result of Calling corresponding function for every PTile.

    param chain_index:

    The required chain index.

    type chain_index:

    int

reduce_chain_index(self: pyhelayers.PTileTensor) None#

Calls corresponding function for every PTile.

set_chain_index(*args, **kwargs)#

Overloaded function.

  1. set_chain_index(self: pyhelayers.PTileTensor, other: pyhelayers.PTileTensor) -> None

    Calls corresponding function for every PTile.

    param other:

    PTileTensor to get chain index from.

    type other:

    PTileTensor

  2. set_chain_index(self: pyhelayers.PTileTensor, chain_index: int) -> None

    Calls corresponding function for every PTile.

    param chain_index:

    The required chain index.

    type chain_index:

    int