packing vectors for setup of computations