qlat_utils.rel_mod_sym_arr

qlat_utils.rel_mod_sym_arr(x, size)[source]

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