read

Engine.read_plain_matrix(filename)
Creates a plain matrix by reading data from a file.
  • Input:
    • filename: str
      • Can be an absolute or relative path.
  • Output:
    • PlainMatrix

Examples

Using an absolute path

from desilofhe import Engine

engine = Engine(slot_count=64)
plain_matrix = engine.read_plain_matrix("/opt/desilo/plain_matrix")

Using a relative path

from desilofhe import Engine

engine = Engine(slot_count=64)
plain_matrix = engine.read_plain_matrix("plain_matrix")