Former-commit-id:06a8b51d6d
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f] Former-commit-id:9f19e3f712
104 lines
1.4 KiB
ReStructuredText
Executable file
104 lines
1.4 KiB
ReStructuredText
Executable file
Array manipulation routines
|
|
***************************
|
|
|
|
.. currentmodule:: numpy
|
|
|
|
Changing array shape
|
|
====================
|
|
.. autosummary::
|
|
:toctree: generated/
|
|
|
|
|
|
reshape
|
|
ravel
|
|
ndarray.flat
|
|
ndarray.flatten
|
|
|
|
Transpose-like operations
|
|
=========================
|
|
.. autosummary::
|
|
:toctree: generated/
|
|
|
|
rollaxis
|
|
swapaxes
|
|
ndarray.T
|
|
transpose
|
|
|
|
Changing number of dimensions
|
|
=============================
|
|
.. autosummary::
|
|
:toctree: generated/
|
|
|
|
atleast_1d
|
|
atleast_2d
|
|
atleast_3d
|
|
broadcast
|
|
broadcast_arrays
|
|
expand_dims
|
|
squeeze
|
|
|
|
Changing kind of array
|
|
======================
|
|
.. autosummary::
|
|
:toctree: generated/
|
|
|
|
asarray
|
|
asanyarray
|
|
asmatrix
|
|
asfarray
|
|
asfortranarray
|
|
asscalar
|
|
require
|
|
|
|
Joining arrays
|
|
==============
|
|
.. autosummary::
|
|
:toctree: generated/
|
|
|
|
column_stack
|
|
concatenate
|
|
dstack
|
|
hstack
|
|
vstack
|
|
|
|
Splitting arrays
|
|
================
|
|
.. autosummary::
|
|
:toctree: generated/
|
|
|
|
array_split
|
|
dsplit
|
|
hsplit
|
|
split
|
|
vsplit
|
|
|
|
Tiling arrays
|
|
=============
|
|
.. autosummary::
|
|
:toctree: generated/
|
|
|
|
tile
|
|
repeat
|
|
|
|
Adding and removing elements
|
|
============================
|
|
.. autosummary::
|
|
:toctree: generated/
|
|
|
|
delete
|
|
insert
|
|
append
|
|
resize
|
|
trim_zeros
|
|
unique
|
|
|
|
Rearranging elements
|
|
====================
|
|
.. autosummary::
|
|
:toctree: generated/
|
|
|
|
fliplr
|
|
flipud
|
|
reshape
|
|
roll
|
|
rot90
|