[NumPy-Tickets] [NumPy] #2002: doc for concatenate with ndarray argument

NumPy Trac numpy-tickets@scipy....
Fri Dec 16 11:53:42 CST 2011

#2002: doc for concatenate with ndarray argument
 Reporter:  hpaulj  |       Owner:  somebody   
     Type:  defect  |      Status:  new        
 Priority:  normal  |   Milestone:  Unscheduled
Component:  Other   |     Version:  1.6.0      
 Keywords:          |  
 The doc string for concatenate does not explain what happens when the
 argument is a single ndarray, as opposed to a tuple of arrays.  kron(),
 for example, uses concatenate like this to consolidate axes.

 It appears that concatenate(a,axis=n) is equivalent to
 concatenate([x for x in a], axis=n)

 That is, it splits the array on the 1st axis, and joins the subarrays on
 their n'th axis.  The net effect is to consolidate the 1st and n+1 axes of

 The same issue applies to the docs for hstack and vstack.

Ticket URL: <http://projects.scipy.org/numpy/ticket/2002>
NumPy <http://projects.scipy.org/numpy>
My example project

More information about the NumPy-Tickets mailing list