EncryptedData#
- class EncryptedData#
A class to hold encrypted data. Each data object may have multiple batches.
- add_encrypted_data(self: pyhelayers.EncryptedData, other: pyhelayers.EncryptedData) None #
Adds the batches of the other EncryptedData to this object.
- Parameters:
other – The other EncryptedData object.
- get_batch(self: pyhelayers.EncryptedData, i: int) pyhelayers.EncryptedBatch #
Returns a specific batch.
- Parameters:
i – The index of batch to get.
- get_num_batches(self: pyhelayers.EncryptedData) int #
Returns the number of batches.
-
class EncryptedData : public helayers::Saveable#
A class to hold encrypted data.
Each data object may have multiple batches.
Public Functions
-
size_t getNumBatches() const#
Returns the number of batches.
-
EncryptedBatch getBatch(size_t i) const#
Returns a specific batch.
- Parameters:
i – The index of batch to get.
-
CTileTensorCPtr getFirstItem() const#
Returns the first item of the first batch.
-
void addBatch(const EncryptedBatch &batch)#
Adds a batch.
- Parameters:
batch – The batch to add.
-
void addEncryptedData(const EncryptedData &other)#
Adds the batches of
other
to this object.- Parameters:
other – The other EncryptedData object.
-
size_t getNumBatches() const#