mxnet
|
support generating a range vector More...
#include "../extension.h"
Go to the source code of this file.
Classes | |
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. More... | |
struct | mshadow::expr::Plan< RangeExp< DType >, DType > |
struct | mshadow::expr::ShapeCheck< dim, RangeExp< DType > > |
struct | mshadow::expr::ExpInfo< RangeExp< DType > > |
Namespaces | |
mshadow | |
namespace for mshadow | |
mshadow::expr | |
namespace for abstract expressions and expressions template, have no dependency on tensor.h, These data structure takes no charge in computations, they are only used to define operations and represent expression in a symbolic way | |
Functions | |
template<typename DType > | |
RangeExp< DType > | mshadow::expr::range (DType start, DType stop, DType step=1, int repeat=1) |
template<typename DType > | |
Plan< RangeExp< DType >, DType > | mshadow::expr::MakePlan (const RangeExp< DType > &exp) |
template<typename DType > | |
int | mshadow::expr::RangeOutSize (DType start, DType stop, DType step, int repeat) |
template<> | |
int | mshadow::expr::RangeOutSize< float > (float start, float stop, float step, int repeat) |
template<> | |
int | mshadow::expr::RangeOutSize< double > (double start, double stop, double step, int repeat) |
support generating a range vector
Copyright (c) 2014 by Contributors