Split a vector into modulus batches
Arguments
- x
A vector.
- n
An integer.
Value
A list with at most n
elements. The i
-th element is a vector
containing all the elements of x
belonging to the same equivalence class
with respect to the modulus
operation. That means \(x_1\) and \(x_2\)
are both elements of out[i]
if eqnx_1 mod n = x_2 mod n = i.