Say I have a numpy array of vectors like this:
a = [[1,2,3], [1,2,3,4,5], [2,3]..]
What is the fastest way to pad each vector in the list with 0s so that each vector has the same length?
Say I have a numpy array of vectors like this:
a = [[1,2,3], [1,2,3,4,5], [2,3]..]
What is the fastest way to pad each vector in the list with 0s so that each vector has the same length?