eval_at_index: Rotate the slots of a ciphertext by an index

View source: R/methods-eval-backlog.R

eval_at_indexR Documentation

Rotate the slots of a ciphertext by an index

Description

eval_at_index(ct, i) moves slot i + k to slot k: a positive index rotates to the left, a negative one to the right. Needs the key for that index (eval_at_index_key_gen()). eval_rotate() calls the C++ function EvalRotate, which does the same thing.

Usage

eval_at_index(ct, index)

Arguments

ct

A Ciphertext.

index

Integer; the rotation index.

Value

A Ciphertext.


openfhe.R documentation built on Nov. 13, 2026, 5:07 p.m.