
Compute the automorphism index for a single slot index
Source:R/eval-key-map.R
find_automorphism_index.RdMaps a CKKS slot index to the corresponding automorphism
index in the cyclotomic ring Z[X]/(X^N + 1). The
automorphism group of the ring is isomorphic to the
multiplicative group (Z/2N)*; this function returns the
representative of that group that corresponds to rotating
the plaintext slots by the given amount.
Details
Used as a primitive by find_automorphism_indices() and
by code that needs to address automorphism keys directly
(for example, selectively generating eval keys for a
sparse set of rotation amounts).
R-first binding:
openfhe-python does not bind FindAutomorphismIndex.
Logged in notes/upstream-defects.md under R-only
surface.
See also
find_automorphism_indices() for the vector form.