Class HyperslabSelection
- Namespace
- PureHDF.Selections
- Assembly
- PureHDF.dll
A regular hyperslab is a selection of elements from a hyper rectangle.
public class HyperslabSelection : Selection
- Inheritance
-
HyperslabSelection
Constructors
HyperslabSelection(int, ulong[], ulong[])
Initializes a new instance of the HyperslabSelection instance of rank rank. Reference: hdfgroup.org.
public HyperslabSelection(int rank, ulong[] starts, ulong[] blocks)
Parameters
rankintThe rank of the selection.
startsulong[]The start coordinate of the block along each dimension.
blocksulong[]The block size along each dimension.
HyperslabSelection(int, ulong[], ulong[], ulong[], ulong[])
Initializes a new instance of the HyperslabSelection instance of rank rank. Reference: hdfgroup.org.
public HyperslabSelection(int rank, ulong[] starts, ulong[] strides, ulong[] counts, ulong[] blocks)
Parameters
rankintThe rank of the selection.
startsulong[]The start coordinate of the block along each dimension.
stridesulong[]The number of elements to separate each block to be selected along each dimension.
countsulong[]The number of blocks to select along each dimension.
blocksulong[]The block size along each dimension.
HyperslabSelection(ulong, ulong)
Initializes a new instance of the HyperslabSelection instance of rank 1. Reference: hdfgroup.org.
public HyperslabSelection(ulong start, ulong block)
Parameters
HyperslabSelection(ulong, ulong, ulong, ulong)
Initializes a new instance of the HyperslabSelection instance of rank 1. Reference: hdfgroup.org.
public HyperslabSelection(ulong start, ulong stride, ulong count, ulong block)
Parameters
startulongThe start coordinate of the block.
strideulongThe number of elements to separate each block to be selected.
countulongThe number of blocks to select.
blockulongThe block size.
Properties
Rank
Gets the rank of the selection.
public int Rank { get; }
Property Value
TotalElementCount
Gets the total number of elements which is used to preallocate the returned buffer.
public override ulong TotalElementCount { get; }
Property Value
Methods
Walk(ulong[])
The walk function is used to walk through the dataset and select the requested data.
public override IEnumerable<Step> Walk(ulong[] limits)
Parameters
limitsulong[]The dataset dimensions.
Returns
- IEnumerable<Step>
An enumerable which provides a sequence of steps to select the requested data.