qlat_utils.rel_mod_arr

qlat_utils.rel_mod_arr(x, size)[source]

Return x % size or x % size - size where x and size are np.array of same shape