copyto(dst, src[, casting, where])
copyto
Copies values from one array to another, broadcasting as necessary.
shape(a)
shape
Return the shape of an array.
reshape(a, newshape[, order])
reshape
Gives a new shape to an array without changing its data.
ravel(a[, order])
ravel
Return a contiguous flattened array.
ndarray.flat
A 1-D iterator over the array.
ndarray.flatten([order])
ndarray.flatten
Return a copy of the array collapsed into one dimension.
moveaxis(a, source, destination)
moveaxis
Move axes of an array to new positions.
rollaxis(a, axis[, start])
rollaxis
Roll the specified axis backwards, until it lies in a given position.
swapaxes(a, axis1, axis2)
swapaxes
Interchange two axes of an array.
ndarray.T
The transposed array.
transpose(a[, axes])
transpose
Reverse or permute the axes of an array; returns the modified array.
atleast_1d(*arys)
atleast_1d
Convert inputs to arrays with at least one dimension.
atleast_2d(*arys)
atleast_2d
View inputs as arrays with at least two dimensions.
atleast_3d(*arys)
atleast_3d
View inputs as arrays with at least three dimensions.
broadcast
Produce an object that mimics broadcasting.
broadcast_to(array, shape[, subok])
broadcast_to
Broadcast an array to a new shape.
broadcast_arrays(*args[, subok])
broadcast_arrays
Broadcast any number of arrays against each other.
expand_dims(a, axis)
expand_dims
Expand the shape of an array.
squeeze(a[, axis])
squeeze
Remove axes of length one from a.
asarray(a[, dtype, order, like])
asarray
Convert the input to an array.
asanyarray(a[, dtype, order, like])
asanyarray
Convert the input to an ndarray, but pass ndarray subclasses through.
asmatrix(data[, dtype])
asmatrix
Interpret the input as a matrix.
asfarray(a[, dtype])
asfarray
Return an array converted to a float type.
asfortranarray(a[, dtype, like])
asfortranarray
Return an array (ndim >= 1) laid out in Fortran order in memory.
ascontiguousarray(a[, dtype, like])
ascontiguousarray
Return a contiguous array (ndim >= 1) in memory (C order).
asarray_chkfinite(a[, dtype, order])
asarray_chkfinite
Convert the input to an array, checking for NaNs or Infs.
asscalar(a)
asscalar
Convert an array of size 1 to its scalar equivalent.
require(a[, dtype, requirements, like])
require
Return an ndarray of the provided type that satisfies requirements.
concatenate([axis, out, dtype, casting])
concatenate
Join a sequence of arrays along an existing axis.
stack(arrays[, axis, out])
stack
Join a sequence of arrays along a new axis.
block(arrays)
block
Assemble an nd-array from nested lists of blocks.
vstack(tup)
vstack
Stack arrays in sequence vertically (row wise).
hstack(tup)
hstack
Stack arrays in sequence horizontally (column wise).
dstack(tup)
dstack
Stack arrays in sequence depth wise (along third axis).
column_stack(tup)
column_stack
Stack 1-D arrays as columns into a 2-D array.
row_stack(tup)
row_stack
split(ary, indices_or_sections[, axis])
split
Split an array into multiple sub-arrays as views into ary.
array_split(ary, indices_or_sections[, axis])
array_split
Split an array into multiple sub-arrays.
dsplit(ary, indices_or_sections)
dsplit
Split array into multiple sub-arrays along the 3rd axis (depth).
hsplit(ary, indices_or_sections)
hsplit
Split an array into multiple sub-arrays horizontally (column-wise).
vsplit(ary, indices_or_sections)
vsplit
Split an array into multiple sub-arrays vertically (row-wise).
tile(A, reps)
tile
Construct an array by repeating A the number of times given by reps.
repeat(a, repeats[, axis])
repeat
Repeat elements of an array.
delete(arr, obj[, axis])
delete
Return a new array with sub-arrays along an axis deleted.
insert(arr, obj, values[, axis])
insert
Insert values along the given axis before the given indices.
append(arr, values[, axis])
append
Append values to the end of an array.
resize(a, new_shape)
resize
Return a new array with the specified shape.
trim_zeros(filt[, trim])
trim_zeros
Trim the leading and/or trailing zeros from a 1-D array or sequence.
unique(ar[, return_index, return_inverse, …])
unique
Find the unique elements of an array.
flip(m[, axis])
flip
Reverse the order of elements in an array along the given axis.
fliplr(m)
fliplr
Flip array in the left/right direction.
flipud(m)
flipud
Flip array in the up/down direction.
roll(a, shift[, axis])
roll
Roll array elements along a given axis.
rot90(m[, k, axes])
rot90
Rotate an array by 90 degrees in the plane specified by axes.