Array Manipulation Routines
Contents
Array Manipulation Routines#
Basic operations#
|
Copies values from one array to another, broadcasting as necessary. |
|
Return the shape of an array. |
Changing array shape#
|
Gives a new shape to an array without changing its data. |
Transpose-like operations#
|
Interchange two axes of an array. |
|
Reverse or permute the axes of an array; returns the modified array. |
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#
|
Convert the input to an array. |
Joining arrays#
|
Join a sequence of arrays along an existing axis. |
|
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. |
Adding and removing elements#
|
Append values to the end of an array. |
Rearranging elements#
|
Gives a new shape to an array without changing its data. |