array_split.split.ShapeSplitter.calculate_split¶
-
ShapeSplitter.
calculate_split
()[source]¶ Computes the split.
Return type: numpy.ndarray
Returns: A numpy
structured array of dimensionlen(self.array_shape)
. Each element of the returned array is atuple
containinglen(self.array_shape)
elements, with each element being aslice
object. Eachtuple
defines a slice within the boundsself.array_start - self.halo[:, 0]
toself.array_start + self.array_shape + self.halo[:, 1]
.