write
Engine.write_light_plain_matrix(light_plain_matrix, filename)- Saves the light plain matrix to the specified path. - Input: - LightPlainMatrix - filename: str - Can be an absolute or relative path. - Output: - None
Examples
Using an absolute path
import numpy as np
from desilofhe import Engine
engine = Engine(slot_count=64)
message = np.arange(64 * 64).reshape(64, 64)
light_plain_matrix = engine.encode_to_light_plain_matrix(message)
engine.write_light_plain_matrix(
light_plain_matrix, "/opt/desilo/light_plain_matrix"
)
Using a relative path