Class Slice
Defined in File transforms.h
Class Documentation
-
class Slice
Slice object used in SliceOption.
Public Functions
-
inline Slice()
Constructor, with start, stop and step default to 0.
-
inline Slice(dsize_t start, dsize_t stop, dsize_t step)
Constructor.
- Parameters
start – [in] Starting integer specifying where to start the slicing.
stop – [in] Ending integer specifying where to stop the slicing.
step – [in] An integer specifying the step of the slicing.
样例/* Slice dimension from 2 to 10 with step 2. */ Slice(0, 10, 2);
-
inline Slice()