mxnet
Public Member Functions | Public Attributes | List of all members
mshadow::expr::SliceExExp< SrcExp, Device, DType, srcdim > Struct Template Reference

slice expression, slice a tensor's channel More...

#include <slice_ex.h>

Inheritance diagram for mshadow::expr::SliceExExp< SrcExp, Device, DType, srcdim >:
Inheritance graph
Collaboration diagram for mshadow::expr::SliceExExp< SrcExp, Device, DType, srcdim >:
Collaboration graph

Public Member Functions

 SliceExExp (const SrcExp &src, Shape< srcdim > begin, Shape< srcdim > end)
 
template<typename E , int etype>
void operator= (const expr::Exp< E, DType, etype > &exp)
 
void operator= (const DType &exp)
 
- Public Member Functions inherited from mshadow::expr::RValueExp< SliceExExp< SrcExp, Device, DType, srcdim >, DType >
const TransposeExp< SliceExExp< SrcExp, Device, DType, srcdim >, DType > T (void) const
 transpose of a matrix More...
 
SliceExExp< SrcExp, Device, DType, srcdim > & operator+= (DType s)
 operator overload More...
 
SliceExExp< SrcExp, Device, DType, srcdim > & operator+= (const Exp< E, DType, etype > &exp)
 implementation of operator+= More...
 
SliceExExp< SrcExp, Device, DType, srcdim > & operator-= (DType s)
 operator overload More...
 
SliceExExp< SrcExp, Device, DType, srcdim > & operator-= (const Exp< E, DType, etype > &exp)
 implementation of operator-= More...
 
SliceExExp< SrcExp, Device, DType, srcdim > & operator*= (DType s)
 operator overload More...
 
SliceExExp< SrcExp, Device, DType, srcdim > & operator*= (const Exp< E, DType, etype > &exp)
 implementation of operator*= More...
 
SliceExExp< SrcExp, Device, DType, srcdim > & operator/= (DType s)
 operator overload More...
 
SliceExExp< SrcExp, Device, DType, srcdim > & operator/= (const Exp< E, DType, etype > &exp)
 implementation of operator/= More...
 
SliceExExp< SrcExp, Device, DType, srcdim > & __assign (DType s)
 operator overload More...
 
SliceExExp< SrcExp, Device, DType, srcdim > & __assign (const Exp< E, DType, etype > &exp)
 we can not define container = container More...
 
SliceExExp< SrcExp, Device, DType, srcdim > & __assign (const Exp< SliceExExp< SrcExp, Device, DType, srcdim >, DType, type::kRValue > &exp)
 operator overload, assign More...
 
- Public Member Functions inherited from mshadow::expr::Exp< SliceExExp< SrcExp, Device, DType, srcdim >, DType, type::kRValue >
const SliceExExp< SrcExp, Device, DType, srcdim > & self (void) const
 
SliceExExp< SrcExp, Device, DType, srcdim > * ptrself (void)
 

Public Attributes

const SrcExp & src_
 
Shape< srcdim > src_shape_
 
Shape< srcdim > shape_
 
const Shape< srcdim > begin_
 
const Shape< srcdim > end_
 

Detailed Description

template<typename SrcExp, typename Device, typename DType, int srcdim>
struct mshadow::expr::SliceExExp< SrcExp, Device, DType, srcdim >

slice expression, slice a tensor's channel

Template Parameters
SrcExpleft expression
DTypethe type of elements
srcdimdimension of src
dimsrc_m_catdimsrc - dimcat

Constructor & Destructor Documentation

◆ SliceExExp()

template<typename SrcExp, typename Device, typename DType, int srcdim>
mshadow::expr::SliceExExp< SrcExp, Device, DType, srcdim >::SliceExExp ( const SrcExp &  src,
Shape< srcdim >  begin,
Shape< srcdim >  end 
)
inline

Member Function Documentation

◆ operator=() [1/2]

template<typename SrcExp, typename Device, typename DType, int srcdim>
template<typename E , int etype>
void mshadow::expr::SliceExExp< SrcExp, Device, DType, srcdim >::operator= ( const expr::Exp< E, DType, etype > &  exp)
inline

◆ operator=() [2/2]

template<typename SrcExp, typename Device, typename DType, int srcdim>
void mshadow::expr::SliceExExp< SrcExp, Device, DType, srcdim >::operator= ( const DType &  exp)
inline

Member Data Documentation

◆ begin_

template<typename SrcExp, typename Device, typename DType, int srcdim>
const Shape<srcdim> mshadow::expr::SliceExExp< SrcExp, Device, DType, srcdim >::begin_

◆ end_

template<typename SrcExp, typename Device, typename DType, int srcdim>
const Shape<srcdim> mshadow::expr::SliceExExp< SrcExp, Device, DType, srcdim >::end_

◆ shape_

template<typename SrcExp, typename Device, typename DType, int srcdim>
Shape<srcdim> mshadow::expr::SliceExExp< SrcExp, Device, DType, srcdim >::shape_

◆ src_

template<typename SrcExp, typename Device, typename DType, int srcdim>
const SrcExp& mshadow::expr::SliceExExp< SrcExp, Device, DType, srcdim >::src_

◆ src_shape_

template<typename SrcExp, typename Device, typename DType, int srcdim>
Shape<srcdim> mshadow::expr::SliceExExp< SrcExp, Device, DType, srcdim >::src_shape_

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