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

expression template for sum of two expressions More...

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

Inheritance diagram for mpblocks::cuda::linalg2::Sum< Scalar, ROWS, COLS, Exp1, Exp2 >:
mpblocks::cuda::linalg2::RValue< Scalar, ROWS, COLS, Sum< Scalar, ROWS, COLS, Exp1, Exp2 > >

Public Member Functions

template<Size_t i, Size_t j>
__device__ __host__ Scalar me () const
 return the evaluated (j,i)'th element of a matrix expression More...
 
__device__ __host__ Sum (Exp1 const &A, Exp2 const &B)
 
template<Size_t i>
__device__ __host__ Scalar ve () const
 return the evaluated i'th element of a vector expression More...
 
- Public Member Functions inherited from mpblocks::cuda::linalg2::RValue< Scalar, ROWS, COLS, Sum< Scalar, ROWS, COLS, Exp1, Exp2 > >
__device__ __host__ Scalar me ()
 return the evaluated (i,j)'th element of a matrix expression More...
 
__device__ __host__ Scalar ve ()
 return the evaluated i'th element of a vector expression More...
 

Private Attributes

Exp1 const & m_A
 
Exp2 const & m_B
 

Detailed Description

template<typename Scalar, Size_t ROWS, Size_t COLS, class Exp1, class Exp2>
class mpblocks::cuda::linalg2::Sum< Scalar, ROWS, COLS, Exp1, Exp2 >

expression template for sum of two expressions

Definition at line 36 of file Sum.h.

Constructor & Destructor Documentation

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

Definition at line 44 of file Sum.h.

Member Function Documentation

template<typename Scalar , Size_t ROWS, Size_t COLS, class Exp1 , class Exp2 >
template<Size_t i, Size_t j>
__device__ __host__ Scalar mpblocks::cuda::linalg2::Sum< Scalar, ROWS, COLS, Exp1, Exp2 >::me ( ) const
inline

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

Definition at line 61 of file Sum.h.

template<typename Scalar , Size_t ROWS, Size_t COLS, class Exp1 , class Exp2 >
template<Size_t i>
__device__ __host__ Scalar mpblocks::cuda::linalg2::Sum< Scalar, ROWS, COLS, Exp1, Exp2 >::ve ( ) const
inline

return the evaluated i'th element of a vector expression

Definition at line 52 of file Sum.h.

Member Data Documentation

template<typename Scalar , Size_t ROWS, Size_t COLS, class Exp1 , class Exp2 >
Exp1 const& mpblocks::cuda::linalg2::Sum< Scalar, ROWS, COLS, Exp1, Exp2 >::m_A
private

Definition at line 39 of file Sum.h.

template<typename Scalar , Size_t ROWS, Size_t COLS, class Exp1 , class Exp2 >
Exp2 const& mpblocks::cuda::linalg2::Sum< Scalar, ROWS, COLS, Exp1, Exp2 >::m_B
private

Definition at line 40 of file Sum.h.


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