[Numpy-discussion] basic numpy array operation
Mon Mar 15 13:20:25 CDT 2010
Suppose i have an array A of length n
I want a variable b to be an array consisting of the first k elements of A
and variable c to be an array with the last n-k elements of A.
How do you do this?
Example A = np.array([1,2,3,4,5,6]), k = 2
b = [1,2]
View this message in context: http://old.nabble.com/basic-numpy-array-operation-tp27908290p27908290.html
Sent from the Numpy-discussion mailing list archive at Nabble.com.
More information about the NumPy-Discussion