Skip to content

How to do a rotation? #361

Closed Answered by Pro7ech
fedejinich asked this question in Q&A
Apr 14, 2023 · 2 comments · 7 replies
Discussion options

You must be logged in to vote

Hello @fedejinich,

The plaintext space of BFV and BGV in Lattigo and SEAL is a 2-rows x N/2-columns matrix.

[[a, b, c, d], [e, f, g, h]]

This is how it behaves in Lattigo:

Rotate rows does:

[[a, b, c, d], [e, f, g, h]] -> [[e, f, g, h], [a, b, c, d]]  

And rotate columns (by 1) does:

[[a, b, c, d], [e, f, g, h]] -> [[b, c, d, a], [f, g, h, e]]  

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@fedejinich
Comment options

@Pro7ech
Comment options

@fedejinich
Comment options

@Pro7ech
Comment options

@fedejinich
Comment options

Answer selected by Pro7ech
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants