EncryptedData#
- class EncryptedData#
A class to hold encrypted data. Each data object may have multiple batches.
- add_batch(self: pyhelayers.EncryptedData, batch: pyhelayers.EncryptedBatch) None #
Adds a batch. :param batch: The batch to add.
- 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.
-
virtual void debugPrint(const std::string &title = "", Verbosity verbosity = VERBOSITY_REGULAR, std::ostream &out = std::cout) const override#
Prints the content of this object.
- Parameters:
title – Text to add to the print
verbosity – Verbosity level
out – Output stream
-
size_t getNumBatches() const#