cheshirekow  v0.1.0
mpblocks::cuda::linalg2::Scale< Scalar, ROWS, COLS, Exp > Class Template Reference

expression template for multiplication by a scalar More...

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

Inheritance diagram for mpblocks::cuda::linalg2::Scale< Scalar, ROWS, COLS, Exp >:
mpblocks::cuda::linalg2::RValue< Scalar, ROWS, COLS, Scale< Scalar, ROWS, COLS, Exp > >

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__ Scale (Scalar s, Exp const &A)
 
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, Scale< Scalar, ROWS, COLS, Exp > >
__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

Exp const & m_A
 
Scalar m_s
 

Detailed Description

template<typename Scalar, Size_t ROWS, Size_t COLS, class Exp>
class mpblocks::cuda::linalg2::Scale< Scalar, ROWS, COLS, Exp >

expression template for multiplication by a scalar

Definition at line 36 of file Scale.h.

Constructor & Destructor Documentation

template<typename Scalar, Size_t ROWS, Size_t COLS, class Exp>
__device__ __host__ mpblocks::cuda::linalg2::Scale< Scalar, ROWS, COLS, Exp >::Scale ( Scalar  s,
Exp const &  A 
)
inline

Definition at line 44 of file Scale.h.

Member Function Documentation

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

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

Definition at line 60 of file Scale.h.

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

return the evaluated i'th element of a vector expression

Definition at line 52 of file Scale.h.

Member Data Documentation

template<typename Scalar, Size_t ROWS, Size_t COLS, class Exp>
Exp const& mpblocks::cuda::linalg2::Scale< Scalar, ROWS, COLS, Exp >::m_A
private

Definition at line 40 of file Scale.h.

template<typename Scalar, Size_t ROWS, Size_t COLS, class Exp>
Scalar mpblocks::cuda::linalg2::Scale< Scalar, ROWS, COLS, Exp >::m_s
private

Definition at line 39 of file Scale.h.


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