row/col vector from 1d array