Expand description
Layout kernels: broadcast, transpose, squeeze, expand, select, take, concat.
Axes are addressed by dimension name. Layout kernels keep the attributes.
Structs§
- Slice
- A Python-style slice:
start:stop:step. Negative indices count from the end.
Enums§
- PadMode
- How
padfills the new positions, like themodeofnumpy.pad. - Selector
- A selection on one axis for
isel.
Functions§
- broadcast_
arrays - Broadcast all arrays onto their shared dimensions, see
Dimensions::broadcast. - broadcast_
to - Broadcast
aontotargetwithout a copy where possible. - concat
- Join arrays along an existing dimension, like
numpy.concatenate. - expand_
dims - Insert a new axis of size 1 at position
axis, without a copy. - flip
- Reverse the order along
dim, likenumpy.flip. - isel
- Select by position on one or more axes, like xarray
isel, in one copy. - move_
dim - Move dimension
nameto positionto. - pad
- Add
beforeandafterpositions alongdim, likenumpy.pad. - rename_
dims - Rename dimensions without a copy.
- repeat
- Repeat each element
repeatstimes alongdim, likenumpy.repeat. - roll
- Roll the elements along
dimbyshift, likenumpy.roll. - squeeze
- Remove size-1 axes without a copy.
Noneremoves every size-1 axis. - stack
- Join arrays along a new dimension at position
axis, likenumpy.stack. - take
- Take
indicesalongdim, likenumpy.take(a, indices, axis). - tile
- Repeat the whole array
repstimes alongdim, likenumpy.tile. - transpose
- Reorder the axes.
ordermust name every dimension once. - transpose_
reversed - Reverse the axis order, like
ndarray.T.