27 #ifndef MPBLOCKS_CUDA_LINALG2_RVALUE_H_
28 #define MPBLOCKS_CUDA_LINALG2_RVALUE_H_
35 template <
typename Scalar, Size_t ROWS, Size_t COLS,
class Exp>
44 return static_cast<Exp const&
>(*this).Exp::template ve<i>();
48 template< Size_t i, Size_t j >
52 std::cout <<
"RValue: returning (" << i <<
"," << j <<
") component\n";
53 return static_cast<Exp const&
>(*this).Exp::template me<i,j>();
70 #endif // MATRIXEXPRESSION_H_
__device__ __host__ Scalar me()
return the evaluated (i,j)'th element of a matrix expression
expression template for rvalues
__device__ __host__ Scalar ve()
return the evaluated i'th element of a vector expression