Array manipulation routines

Basic operations

copyto

Changing array shape

reshape
ravel
ndarray.flat A 1-D iterator over the array.
ndarray.flatten([order]) Return a copy of the array collapsed into one dimension.

Transpose-like operations

rollaxis
swapaxes
ndarray.T Same as self.transpose(), except that self is returned if self.ndim < 2.
transpose

Changing number of dimensions

atleast_1d
atleast_2d
atleast_3d
broadcast Produce an object that mimics broadcasting.
broadcast_arrays
expand_dims
squeeze

Changing kind of array

asarray
asanyarray
asmatrix
asfarray
asfortranarray
asscalar
require

Joining arrays

column_stack
concatenate
dstack
hstack
vstack

Splitting arrays

array_split
dsplit
hsplit
split
vsplit

Tiling arrays

tile
repeat

Adding and removing elements

delete
insert
append
resize
trim_zeros
unique

Rearranging elements

fliplr
flipud
reshape
roll
rot90