Apache SINGA
A distributed deep learning platform .
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Macros
Public Member Functions | Public Attributes | List of all members
mshadow::Tensor< Device, 1 > Struct Template Reference
Inheritance diagram for mshadow::Tensor< Device, 1 >:
mshadow::expr::ContainerExp< Tensor< Device, 1 > > mshadow::expr::Exp< Tensor< Device, 1 >, type::kContainer >

Public Member Functions

MSHADOW_XINLINE Tensor (const Shape< 1 > &shape)
 
MSHADOW_XINLINE Tensor (real_t *dptr, Shape< 1 > shape)
 
MSHADOW_XINLINE Tensor< Device, 2 > FlatTo2D (void) const
 
MSHADOW_XINLINE Tensor< Device, 1 > Slice (index_t begin, index_t end) const
 
MSHADOW_XINLINE real_toperator[] (index_t idx)
 
MSHADOW_XINLINE const real_toperator[] (index_t idx) const
 
Tensor< Device, 1 > & operator= (double s)
 
template<typename E >
Tensor< Device, 1 > & operator= (const expr::Exp< E, expr::type::kMapper > &exp)
 
template<typename E >
Tensor< Device, 1 > & operator= (const expr::Exp< E, expr::type::kComplex > &exp)
 
- Public Member Functions inherited from mshadow::expr::ContainerExp< Tensor< Device, 1 > >
const TransposeExp< Tensor
< Device, 1 > > 
T (void) const
 transpose of a matrix More...
 
Tensor< Device, 1 > & operator+= (real_t s)
 operator overload
 
Tensor< Device, 1 > & operator+= (const Exp< E, etype > &exp)
 implementation of operator+=
 
Tensor< Device, 1 > & operator-= (real_t s)
 operator overload
 
Tensor< Device, 1 > & operator-= (const Exp< E, etype > &exp)
 implementation of operator-=
 
Tensor< Device, 1 > & operator*= (real_t s)
 operator overload
 
Tensor< Device, 1 > & operator*= (const Exp< E, etype > &exp)
 implementation of operator*=
 
Tensor< Device, 1 > & operator/= (real_t s)
 operator overload
 
Tensor< Device, 1 > & operator/= (const Exp< E, etype > &exp)
 implementation of operator/=
 
Tensor< Device, 1 > & __assign (real_t s)
 operator overload
 
Tensor< Device, 1 > & __assign (const Exp< E, type::kMapper > &exp)
 implementation of operator=, note that we can not define container = container
 
Tensor< Device, 1 > & __assign (const Exp< E, type::kComplex > &exp)
 implementation of operator=, note that we can not define container = container
 
- Public Member Functions inherited from mshadow::expr::Exp< Tensor< Device, 1 >, type::kContainer >
const Tensor< Device, 1 > & self (void) const
 
Tensor< Device, 1 > & refself (void)
 

Public Attributes

real_tdptr
 
Shape< 1 > shape
 

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