scalar_encode
scalar_encode(out + compressed_vector_size(rank), &v, v_bits);
scalar_encode(out + i * bits * DEGREE / 8, &a[i], bits);