cheshirekow  v0.1.0
mpblocks::cuda::linalg::LView< 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::LView< Scalar, Exp >:
mpblocks::cuda::linalg::LValue< Scalar, LView< Scalar, Exp > > mpblocks::cuda::linalg::RValue< Scalar, LView< Scalar, Exp > >

Public Types

typedef unsigned int Size_t
 
- Public Types inherited from mpblocks::cuda::linalg::LValue< Scalar, LView< Scalar, Exp > >
typedef unsigned int Size_t
 
typedef StreamAssignment
< LValue< Scalar, LView
< Scalar, Exp > > > 
Stream_t
 
- Public Types inherited from mpblocks::cuda::linalg::RValue< Scalar, LView< 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__ LView (Exp &A, Size_t i, Size_t j, Size_t rows, Size_t cols)
 
__device__ __host__ Scalar const & 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 i, Size_t j)
 return the evaluated (j,i)'th element of a matrix expression More...
 
template<class Exp2 >
__device__ __host__ LView
< Scalar, Exp > & 
operator= (RValue< Scalar, Exp2 > const &B)
 
template<class Exp2 >
__device__ __host__ LView
< Scalar, Exp > & 
operator= (LValue< Scalar, Exp2 > const &B)
 
__device__ __host__ Scalar const & operator[] (Size_t k) const
 return the evaluated i'th element of a vector expression More...
 
__device__ __host__ Scalar & operator[] (Size_t k)
 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...
 
- Public Member Functions inherited from mpblocks::cuda::linalg::LValue< Scalar, LView< Scalar, Exp > >
__device__ __host__ Size_t cols () const
 return the columns of a matrix expression More...
 
__device__ __host__ operator RValue< Scalar, LValue< Scalar, LView< Scalar, Exp > > > ()
 
__device__ __host__ Scalar & operator() (Size_t i, Size_t j)
 return the evaluated (i,j)'th element of a matrix expression More...
 
__device__ __host__ Scalar const & operator() (Size_t i, Size_t j) const
 return the evaluated (i,j)'th element of a matrix expression More...
 
__device__ __host__ LValue
< Scalar, LView< Scalar, Exp > > & 
operator+= (RValue< Scalar, Exp2 > const &B)
 
__device__ __host__ LValue
< Scalar, LView< Scalar, Exp > > & 
operator-= (RValue< Scalar, Exp2 > const &B)
 
__device__ __host__ Stream_t operator<< (Scalar x)
 returns a stream for assignment More...
 
__device__ __host__ LValue
< Scalar, LView< Scalar, Exp > > & 
operator= (RValue< Scalar, Exp2 > const &B)
 
__device__ __host__ Scalar & operator[] (Size_t i)
 return the evaluated i'th element of a vector expression More...
 
__device__ __host__ Scalar const & 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...
 
- Public Member Functions inherited from mpblocks::cuda::linalg::RValue< Scalar, LView< 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, LView< 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 & 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::LView< Scalar, Exp >

expression template for subset of a matrix expression

Definition at line 136 of file View.h.

Member Typedef Documentation

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

Definition at line 141 of file View.h.

Constructor & Destructor Documentation

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

Definition at line 153 of file View.h.

Member Function Documentation

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

return the columns of a matrix expression

Definition at line 177 of file View.h.

template<typename Scalar , class Exp >
__device__ __host__ Scalar const& mpblocks::cuda::linalg::LView< 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 202 of file View.h.

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

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

Definition at line 209 of file View.h.

template<typename Scalar , class Exp >
template<class Exp2 >
__device__ __host__ LView<Scalar,Exp>& mpblocks::cuda::linalg::LView< Scalar, Exp >::operator= ( RValue< Scalar, Exp2 > const &  B)
inline

Definition at line 216 of file View.h.

template<typename Scalar , class Exp >
template<class Exp2 >
__device__ __host__ LView<Scalar,Exp>& mpblocks::cuda::linalg::LView< Scalar, Exp >::operator= ( LValue< Scalar, Exp2 > const &  B)
inline

Definition at line 224 of file View.h.

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

return the evaluated i'th element of a vector expression

Definition at line 184 of file View.h.

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

return the evaluated i'th element of a vector expression

Definition at line 193 of file View.h.

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

return the rows of a matrix expression

Definition at line 170 of file View.h.

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

return the size for a vector

Definition at line 163 of file View.h.

Member Data Documentation

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

Definition at line 144 of file View.h.

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

Definition at line 148 of file View.h.

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

Definition at line 145 of file View.h.

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

Definition at line 146 of file View.h.

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

Definition at line 147 of file View.h.


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