cheshirekow  v0.1.0
mpblocks::cuda::linalg::RView< Scalar, Exp > Class Template Reference

expression template for subset of a matrix expression More...

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

Inheritance diagram for mpblocks::cuda::linalg::RView< Scalar, Exp >:
mpblocks::cuda::linalg::RValue< Scalar, RView< Scalar, Exp > >

Public Types

typedef unsigned int Size_t
 
- Public Types inherited from mpblocks::cuda::linalg::RValue< Scalar, RView< Scalar, Exp > >
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 (j,i)'th element of a matrix expression More...
 
__device__ __host__ Scalar operator[] (Size_t k) 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__ RView (Exp const &A, Size_t i, Size_t j, Size_t rows, Size_t cols)
 
__device__ __host__ Size_t size () const
 return the size for a vector More...
 
- Public Member Functions inherited from mpblocks::cuda::linalg::RValue< Scalar, RView< Scalar, Exp > >
__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, RView< Scalar, Exp > > 
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...
 

Protected Attributes

Exp const & m_A
 
Size_t m_cols
 
Size_t m_i
 
Size_t m_j
 
Size_t m_rows
 

Detailed Description

template<typename Scalar, class Exp>
class mpblocks::cuda::linalg::RView< Scalar, Exp >

expression template for subset of a matrix expression

Definition at line 36 of file View.h.

Member Typedef Documentation

template<typename Scalar , class Exp >
typedef unsigned int mpblocks::cuda::linalg::RView< Scalar, Exp >::Size_t

Definition at line 40 of file View.h.

Constructor & Destructor Documentation

template<typename Scalar , class Exp >
__device__ __host__ mpblocks::cuda::linalg::RView< Scalar, Exp >::RView ( Exp const &  A,
Size_t  i,
Size_t  j,
Size_t  rows,
Size_t  cols 
)
inline

Definition at line 52 of file View.h.

Member Function Documentation

template<typename Scalar , class Exp >
__device__ __host__ Size_t mpblocks::cuda::linalg::RView< Scalar, Exp >::cols ( ) const
inline

return the columns of a matrix expression

Definition at line 76 of file View.h.

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

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

Definition at line 92 of file View.h.

template<typename Scalar , class Exp >
__device__ __host__ Scalar mpblocks::cuda::linalg::RView< Scalar, Exp >::operator[] ( Size_t  k) const
inline

return the evaluated i'th element of a vector expression

Definition at line 83 of file View.h.

template<typename Scalar , class Exp >
__device__ __host__ Size_t mpblocks::cuda::linalg::RView< Scalar, Exp >::rows ( ) const
inline

return the rows of a matrix expression

Definition at line 69 of file View.h.

template<typename Scalar , class Exp >
__device__ __host__ Size_t mpblocks::cuda::linalg::RView< Scalar, Exp >::size ( ) const
inline

return the size for a vector

Definition at line 62 of file View.h.

Member Data Documentation

template<typename Scalar , class Exp >
Exp const& mpblocks::cuda::linalg::RView< Scalar, Exp >::m_A
protected

Definition at line 43 of file View.h.

template<typename Scalar , class Exp >
Size_t mpblocks::cuda::linalg::RView< Scalar, Exp >::m_cols
protected

Definition at line 47 of file View.h.

template<typename Scalar , class Exp >
Size_t mpblocks::cuda::linalg::RView< Scalar, Exp >::m_i
protected

Definition at line 44 of file View.h.

template<typename Scalar , class Exp >
Size_t mpblocks::cuda::linalg::RView< Scalar, Exp >::m_j
protected

Definition at line 45 of file View.h.

template<typename Scalar , class Exp >
Size_t mpblocks::cuda::linalg::RView< Scalar, Exp >::m_rows
protected

Definition at line 46 of file View.h.


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