Numpy, adding a row to a matrix
saptarshi.guha at gmail.com
Mon Jun 9 21:44:47 CEST 2008
I have a numpy array (2 rows 3 colums)
a=numpy.array( [ [1,2,3] , [3,3,1] ])
I wish to add a row, this is how i do it
a[s]=new row vector.
Q: Is this a costly operation? What happens if i have to it several
(and unknown) number of times?
is there a simpler way to add a row?
Thank you in advance
More information about the Python-list