Shaping

Stacking

concatenate(arrays[, axis, out])

Join a sequence of arrays along an existing axis.

dstack(tup)

Stack arrays in sequence depth wise (along third axis).

hstack(tup)

Stack arrays in sequence horizontally (column wise).

stack(arrays[, axis, out])

Join a sequence of arrays along a new axis.

vstack(tup)

Stack arrays in sequence vertically (row wise).

Splitting

array_split(ary, indices_or_sections[, axis])

Split an array into multiple sub-arrays.

dsplit(ary, indices_or_sections)

Split array into multiple sub-arrays along the 3rd axis (depth).

hsplit(ary, indices_or_sections)

Split an array into multiple sub-arrays horizontally (column-wise).

split(ary, indices_or_sections[, axis])

Split an array into multiple sub-arrays.

vsplit(ary, indices_or_sections)

Split an array into multiple sub-arrays vertically (row-wise).

Shape manipulation

atleast_1d(*arys)

Convert inputs to arrays with at least one dimension.

atleast_2d(*arys)

View inputs as arrays with at least two dimensions.

atleast_3d(*arys)

View inputs as arrays with at least three dimensions.

broadcast_arrays(*args, **kwargs)

Broadcast any number of arrays against each other.

expand_dims(a, axis)

Expand the shape of an array.

moveaxis(a, source, destination)

Move axes of an array to new positions.

repeat(a, repeats[, axis])

Repeat elements of an array.

reshape(a, newshape[, order])

Give a new shape to an array without changing its data.

tile(A, reps)

Construct an array by repeating A the number of times given by reps.

transpose(a[, axes])

Permute the dimensions of an array.