Learn R Programming

openfhe.R (version 1.6.1)

eval_at_index: 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)

Value

A Ciphertext.

Arguments

ct

A Ciphertext.

index

Integer; the rotation index.