Generate a range vector similar to python: range(start, stop[, step][, repeat]). If step is positive, the last element is the largest start + i * step less than stop If step is negative, the last element is the smallest start + i * step greater than stop. All elements are repeated for repeat
times, e.g range(0, 4, 2, 3) –> 0, 0, 0, 2, 2, 2.
More...
#include <range.h>
template<typename DType>
struct mshadow::expr::RangeExp< DType >
Generate a range vector similar to python: range(start, stop[, step][, repeat]). If step is positive, the last element is the largest start + i * step less than stop If step is negative, the last element is the smallest start + i * step greater than stop. All elements are repeated for repeat
times, e.g range(0, 4, 2, 3) –> 0, 0, 0, 2, 2, 2.
- Template Parameters
-
SrcExp | type of lhs expression |
IndexExp | type of index expression |
DType | the type of elements |
The documentation for this struct was generated from the following file:
- /work/mxnet/3rdparty/mshadow/mshadow/extension/range.h