array_split.array_split¶

array_split.
array_split
(ary, indices_or_sections=None, axis=None, tile_shape=None, max_tile_bytes=None, max_tile_shape=None, sub_tile_shape=None, halo=None)[source]¶ Splits the specified array
ary
into subarrays, returns list ofnumpy.ndarray
.Parameters:  ary (
numpy.ndarray
) – Array which is split into subarrays.  indices_or_sections (
None
,int
or sequence ofint
) – If an integer, indicates the number of elements in the calculated split array. If a sequence, indicates the indices (per axis) at which the splits occur. See Splitting by number of tiles examples.  axis (
None
,int
or sequence ofint
) – If an integer, indicates the axis which is to be split. If a sequence integers, indicates the number of slices per axis, i.e. ifaxis = [3, 5]
then axis0
is cut into 3 slices and axis1
is cut into 5 slices for a total of 15 (3*5
) rectangular slices in the returned(3, 5)
shaped split. See Splitting by number of tiles examples and Splitting by peraxis cut indices examples.  tile_shape (
None
or sequence ofint
) – When notNone
, specifies explicit shape for tiles. Should be same length asarray_shape
. See Splitting by tile shape examples.  max_tile_bytes (
None
orint
) – The maximum number of bytes for calculatedtile_shape
. See Splitting by maximum bytes per tile examples.  max_tile_shape (
None
or sequence ofint
) – Per axis maximum shapes for the calculatedtile_shape
. Only relevant whenmax_tile_bytes
is specified. Should be same length asarray_shape
. See Splitting by maximum bytes per tile examples.  sub_tile_shape (
None
or sequence ofint
) – When notNone
, the calculatedtile_shape
will be an even multiple of this subtile shape. Only relevant whenmax_tile_bytes
is specified. Should be same length asarray_shape
. See Splitting by maximum bytes per tile examples.  halo (
None
,int
, sequence ofint
, or(len(ary.shape), 2)
shapednumpy.ndarray
) – How tiles are extended per axis in ve and +ve directions with halo elements. See The halo parameter examples.
Return type: Returns: List of
numpy.ndarray
elements, where each element is a slice fromary
(potentially an empty slice). ary (