Array manipulation routines#
Basic operations#
|
Copies values from one array to another with broadcasting. |
|
Returns the shape of an array |
Changing array shape#
|
Returns an array with new shape and same elements. |
|
Returns a flattened array. |
See also
Transpose-like operations#
|
Moves axes of an array to new positions. |
|
Moves the specified axis backwards to the given place. |
|
Swaps the two axes. |
|
Permutes the dimensions of an array. |
See also
Changing number of dimensions#
|
Converts arrays to arrays with dimensions >= 1. |
|
Converts arrays to arrays with dimensions >= 2. |
|
Converts arrays to arrays with dimensions >= 3. |
|
Object that performs broadcasting. |
|
Broadcast an array to a given shape. |
|
Broadcasts given arrays. |
|
Expands given arrays. |
|
Removes size-one axes from the shape of an array. |
Changing kind of array#
|
Converts an object to array. |
|
Converts an object to array. |
|
Converts array elements to float type. |
|
Return an array laid out in Fortran order in memory. |
|
Returns a C-contiguous array. |
|
Converts the given input to an array, and raises an error if the input contains NaNs or Infs. |
|
Return an array which satisfies the requirements. |
Joining arrays#
|
Joins arrays along an axis. |
|
Stacks arrays along a new axis. |
|
Stacks arrays vertically. |
|
Stacks arrays horizontally. |
|
Stacks arrays along the third axis. |
|
Stacks 1-D and 2-D arrays as columns into a 2-D array. |
|
Stacks arrays vertically. |
Splitting arrays#
|
Splits an array into multiple sub arrays along a given axis. |
|
Splits an array into multiple sub arrays along a given axis. |
|
Splits an array into multiple sub arrays along the third axis. |
|
Splits an array into multiple sub arrays horizontally. |
|
Splits an array into multiple sub arrays along the first axis. |
Tiling arrays#
|
Construct an array by repeating A the number of times given by reps. |
|
Repeat arrays along an axis. |
Adding and removing elements#
|
Delete values from an array along the specified axis. |
|
Append values to the end of an array. |
|
Return a new array with the specified shape. |
|
Find the unique elements of an array. |
|
Trim the leading and/or trailing zeros from a 1-D array or sequence. |
Rearranging elements#
|
Reverse the order of elements in an array along the given axis. |
|
Flip array in the left/right direction. |
|
Flip array in the up/down direction. |
|
Returns an array with new shape and same elements. |
|
Roll array elements along a given axis. |
|
Rotate an array by 90 degrees in the plane specified by axes. |