Array Manipulation Routines
Basic operations
Copies values from one array to another, broadcasting as necessary. |
Changing array shape
Gives a new shape to an array without changing its data. |
|
Return a contiguous flattened array. |
Transpose-like operations
Move axes of an array to new positions. |
|
Roll the specified axis backwards, until it lies in a given position. |
|
Interchange two axes of an array. |
|
Reverse or permute the axes of an array; returns the modified array. |
See also
dpnp.dparray.T
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. |
|
Expand the shape of an array. |
|
Remove single-dimensional entries from the shape of an array. |
Changing kind of array
Converts an input object into array. |
|
Returns the NumPy array with input data. |
|
Convert the input to an ndarray, but pass ndarray subclasses through. |
|
Return an array converted to a float type. |
|
Return a contiguous array (ndim >= 1) in memory (C order). |
Joining arrays
Join a sequence of arrays along an existing axis. |
|
Join a sequence of arrays along a new axis. |
|
Stack arrays in sequence horizontally (column wise). |
|
Stack arrays in sequence vertically (row wise). |
Splitting arrays
Tiling arrays
Repeat elements of an array. |
Adding and removing elements
Find the unique elements of an array. |
Rearranging elements
Gives a new shape to an array without changing its data. |