-
Notifications
You must be signed in to change notification settings - Fork 84
Closed
Description
Hi, below part is from shuffle function. Are all the lines necessary or is it just to increase the randomness? x_u is already random. What is the purpose of scalar_mul and vector_add? Can't we get rid of them to increase the performance of shuffling by decreasing the execution time?
Also could you name the paper, study that shuffling algorithm originated?
for i in range(n-1):
u = random_unit_vector(sectype, n - i)
x_u = runtime.in_prod(x[i:], u)
d = runtime.scalar_mul(x[i] - x_u, u)
x[i] = x_u
x[i:] = runtime.vector_add(x[i:], d)
return
Metadata
Metadata
Assignees
Labels
No labels