axis

FixedRollKey.axis
Shows the axis along which the fixed roll key can roll a ciphertext.
  • Output
    • axis, int | None
      • For the vector engine, the value is always None.
      • For the matrix engine, the axis values are:
        • 0: batch
        • 1: height
from desilofhe import Engine

vector_engine = Engine()
secret_key = vector_engine.create_secret_key()
fixed_roll_key = vector_engine.create_fixed_roll_key(secret_key, delta=1)
axis = fixed_roll_key.axis  # None
from desilofhe import Engine

matrix_engine = Engine(form="matrix")
secret_key = matrix_engine.create_secret_key()

axis_0_fixed_roll_key = matrix_engine.create_fixed_roll_key(
    secret_key, delta=1, axis=0
)
axis = axis_0_fixed_roll_key.axis  # 0

axis_1_fixed_roll_key = matrix_engine.create_fixed_roll_key(
    secret_key, delta=1, axis=1
)
axis = axis_1_fixed_roll_key.axis  # 1