cheshirekow  v0.1.0
mpblocks::cuda::linalg::Sum< Scalar, Exp1, Exp2 > Class Template Reference

expression template for sum of two matrix expressions More...

#include <mpblocks/cuda/linalg/Sum.h>

Inheritance diagram for mpblocks::cuda::linalg::Sum< Scalar, Exp1, Exp2 >:
mpblocks::cuda::linalg::RValue< Scalar, Sum< Scalar, Exp1, Exp2 > >

Public Types

typedef unsigned int Size_t
 
- Public Types inherited from mpblocks::cuda::linalg::RValue< Scalar, Sum< Scalar, Exp1, Exp2 > >
typedef unsigned int Size_t
 

Public Member Functions

__device__ __host__ Size_t cols () const
 return the columns of a matrix expression More...
 
__device__ __host__ Scalar operator() (Size_t i, Size_t j) const
 return the evaluated (i,j)'th element of a matrix expression More...
 
__device__ __host__ Scalar operator[] (Size_t i) const
 return the evaluated i'th element of a vector expression More...
 
__device__ __host__ Size_t rows () const
 return the rows of a matrix expression More...
 
__device__ __host__ Size_t size () const
 return the size for a vector More...
 
__device__ __host__ Sum (Exp1 const &A, Exp2 const &B)
 
- Public Member Functions inherited from mpblocks::cuda::linalg::RValue< Scalar, Sum< Scalar, Exp1, Exp2 > >
__device__ __host__ Size_t cols () const
 return the columns of a matrix expression More...
 
__device__ __host__ Scalar maxCoeff ()
 
__device__ __host__ Scalar norm () const
 
__device__ __host__ Scalar norm_squared () const
 
__device__ __host__ Scale
< Scalar, Sum< Scalar, Exp1,
Exp2 > > 
normalized () const
 
__device__ __host__ Scalar operator() (Size_t i, Size_t j) const
 return the evaluated (i,j)'th element of a matrix expression More...
 
__device__ __host__ Scalar operator[] (Size_t i) const
 return the evaluated i'th element of a vector expression More...
 
__device__ __host__ Size_t rows () const
 return the rows of a matrix expression More...
 
__device__ __host__ Size_t size () const
 return the size for a vector More...
 

Private Attributes

Exp1 const & m_A
 
Exp2 const & m_B
 

Detailed Description

template<typename Scalar, class Exp1, class Exp2>
class mpblocks::cuda::linalg::Sum< Scalar, Exp1, Exp2 >

expression template for sum of two matrix expressions

Definition at line 36 of file Sum.h.

Member Typedef Documentation

template<typename Scalar , class Exp1 , class Exp2 >
typedef unsigned int mpblocks::cuda::linalg::Sum< Scalar, Exp1, Exp2 >::Size_t

Definition at line 43 of file Sum.h.

Constructor & Destructor Documentation

template<typename Scalar , class Exp1 , class Exp2 >
__device__ __host__ mpblocks::cuda::linalg::Sum< Scalar, Exp1, Exp2 >::Sum ( Exp1 const &  A,
Exp2 const &  B 
)
inline

Definition at line 46 of file Sum.h.

Member Function Documentation

template<typename Scalar , class Exp1 , class Exp2 >
__device__ __host__ Size_t mpblocks::cuda::linalg::Sum< Scalar, Exp1, Exp2 >::cols ( ) const
inline

return the columns of a matrix expression

Definition at line 71 of file Sum.h.

template<typename Scalar , class Exp1 , class Exp2 >
__device__ __host__ Scalar mpblocks::cuda::linalg::Sum< Scalar, Exp1, Exp2 >::operator() ( Size_t  i,
Size_t  j 
) const
inline

return the evaluated (i,j)'th element of a matrix expression

Definition at line 85 of file Sum.h.

template<typename Scalar , class Exp1 , class Exp2 >
__device__ __host__ Scalar mpblocks::cuda::linalg::Sum< Scalar, Exp1, Exp2 >::operator[] ( Size_t  i) const
inline

return the evaluated i'th element of a vector expression

Definition at line 78 of file Sum.h.

template<typename Scalar , class Exp1 , class Exp2 >
__device__ __host__ Size_t mpblocks::cuda::linalg::Sum< Scalar, Exp1, Exp2 >::rows ( ) const
inline

return the rows of a matrix expression

Definition at line 64 of file Sum.h.

template<typename Scalar , class Exp1 , class Exp2 >
__device__ __host__ Size_t mpblocks::cuda::linalg::Sum< Scalar, Exp1, Exp2 >::size ( ) const
inline

return the size for a vector

Definition at line 57 of file Sum.h.

Member Data Documentation

template<typename Scalar , class Exp1 , class Exp2 >
Exp1 const& mpblocks::cuda::linalg::Sum< Scalar, Exp1, Exp2 >::m_A
private

Definition at line 39 of file Sum.h.

template<typename Scalar , class Exp1 , class Exp2 >
Exp2 const& mpblocks::cuda::linalg::Sum< Scalar, Exp1, Exp2 >::m_B
private

Definition at line 40 of file Sum.h.


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