here does it work to say axis=1, arr=vectors - piecewise_vectors?