mxnet
Public Member Functions | Public Attributes | List of all members
mshadow::expr::ReduceTo1DExp< SrcExp, DType, Reducer, m_dimkeep > Struct Template Reference

reduction to 1 dimension tensor input: Tensor<Device,k>: ishape output: Tensor<Device,1> shape[0] = ishape[dimkeep]; More...

#include <reduceto1d.h>

Inheritance diagram for mshadow::expr::ReduceTo1DExp< SrcExp, DType, Reducer, m_dimkeep >:
Inheritance graph
Collaboration diagram for mshadow::expr::ReduceTo1DExp< SrcExp, DType, Reducer, m_dimkeep >:
Collaboration graph

Public Member Functions

 ReduceTo1DExp (const SrcExp &src, DType scale)
 construct a repmat expression from src and nrow More...
 
- Public Member Functions inherited from mshadow::expr::Exp< ReduceTo1DExp< SrcExp, DType, Reducer, m_dimkeep >, DType, type::kComplex >
const ReduceTo1DExp< SrcExp, DType, Reducer, m_dimkeep > & self (void) const
 
ReduceTo1DExp< SrcExp, DType, Reducer, m_dimkeep > * ptrself (void)
 

Public Attributes

const SrcExp & src_
 source operand More...
 
DType scale_
 source operand, scale of the More...
 

Detailed Description

template<typename SrcExp, typename DType, typename Reducer, int m_dimkeep>
struct mshadow::expr::ReduceTo1DExp< SrcExp, DType, Reducer, m_dimkeep >

reduction to 1 dimension tensor input: Tensor<Device,k>: ishape output: Tensor<Device,1> shape[0] = ishape[dimkeep];

Template Parameters
SrcExptype of expression to be reduced
DTypethe data type of the scalar
Reducerwhich reducer to use
m_dimkeepwhich dimension to be kept, encoded with dimsrc - dimkeep

Constructor & Destructor Documentation

template<typename SrcExp, typename DType, typename Reducer, int m_dimkeep>
mshadow::expr::ReduceTo1DExp< SrcExp, DType, Reducer, m_dimkeep >::ReduceTo1DExp ( const SrcExp &  src,
DType  scale 
)
inline

construct a repmat expression from src and nrow

Member Data Documentation

template<typename SrcExp, typename DType, typename Reducer, int m_dimkeep>
DType mshadow::expr::ReduceTo1DExp< SrcExp, DType, Reducer, m_dimkeep >::scale_

source operand, scale of the

template<typename SrcExp, typename DType, typename Reducer, int m_dimkeep>
const SrcExp& mshadow::expr::ReduceTo1DExp< SrcExp, DType, Reducer, m_dimkeep >::src_

source operand


The documentation for this struct was generated from the following file: