Skip to content

Commit

Permalink
Bug fix (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArseniyKholod authored Feb 13, 2025
1 parent 0c3ca8b commit 78d9b14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/openfhe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ function compute_rotation_indices_1d(context, shape, shifts)
# iterate over all shifts
for shift in shifts
# add all required indices from implementation of rotate function
if shift < 0
shift = array_length + shift
end
shift += empty_slots
shift1 = div(shift, capacity)
rotation_index = shift - capacity * shift1
Expand Down

0 comments on commit 78d9b14

Please sign in to comment.