extractDimension method
Returns a list of each chunk at the given dimension
.
This does not affect the original array.
The array [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]
creates a 2x2 cube.
extractDimension(dimension: 1);
The above example returns two 2x2 planes:
[[1, 2], [3, 4]]
[[5, 6], [7, 8]]
Note: The returned list is a list of NdArrays.
Implementation
List<NdArray> extractDimension(int dimension) =>
ListTools.extractDimension(dimension: dimension, list: _data);