Array manipulation routines#
Basic operations#
Changing array shape#
Transpose-like operations#
|
Move axes of an array to new positions. |
|
Interchange two axes of an array. |
|
Permute the dimensions of an array. |
See also cupynumeric.ndarray.T
property.
Changing number of dimensions#
|
Convert inputs to arrays with at least one dimension. |
|
View inputs as arrays with at least two dimensions. |
|
View inputs as arrays with at least three dimensions. |
|
Broadcast any number of arrays against each other. |
|
Broadcast the input shapes into a single shape. |
|
Broadcast an array to a new shape. |
|
Expand the shape of an array. |
|
Remove single-dimensional entries from the shape of an array. |
Changing kind of array#
|
Convert the input to an array. |
Joining arrays#
|
Append values to the end of an array. |
|
concatenate((a1, a2, ...), axis=0, out=None, dtype=None, casting="same_kind") |
|
Join a sequence of arrays along a new axis. |
|
Assemble an nd-array from nested lists of blocks. |
|
Stack arrays in sequence vertically (row wise). |
|
Stack arrays in sequence horizontally (column wise). |
|
Stack arrays in sequence depth wise (along third axis). |
|
Stack 1-D arrays as columns into a 2-D array. |
|
Stack arrays in sequence vertically (row wise). |
Splitting arrays#
|
Split an array into multiple sub-arrays as views into ary. |
|
Split an array into multiple sub-arrays. |
|
Split array into multiple sub-arrays along the 3rd axis (depth). |
|
Split an array into multiple sub-arrays horizontally (column-wise). |
|
Split an array into multiple sub-arrays vertically (row-wise). |
Tiling arrays#
|
Construct an array by repeating A the number of times given by reps. |
Rearranging elements#
|
Reverse the order of elements in an array along the given axis. |
|
Reverse the order of elements along axis 1 (left/right). |
|
Reverse the order of elements along axis 0 (up/down). |
|
Roll array elements along a given axis. |
|
Rotate an array by 90 degrees in the plane specified by axes. |