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

forward declared for normalized() More...

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

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

Public Types

typedef unsigned int Size_t
 
- Public Types inherited from mpblocks::cuda::linalg::RValue< Scalar, Scale< 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 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__ Scale (Scalar s, Exp const &A)
 
__device__ __host__ Size_t size () const
 return the size for a vector More...
 
- Public Member Functions inherited from mpblocks::cuda::linalg::RValue< Scalar, Scale< 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, Scale< 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...
 

Private Attributes

Exp const & m_A
 
Scalar m_s
 

Detailed Description

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

forward declared for normalized()

expression template for multiplication by a scalar

Definition at line 37 of file RValue.h.

Member Typedef Documentation

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

Definition at line 43 of file Scale.h.

Constructor & Destructor Documentation

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

Definition at line 46 of file Scale.h.

Member Function Documentation

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

return the columns of a matrix expression

Definition at line 67 of file Scale.h.

template<typename Scalar, class Exp>
__device__ __host__ Scalar mpblocks::cuda::linalg::Scale< 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 81 of file Scale.h.

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

return the evaluated i'th element of a vector expression

Definition at line 74 of file Scale.h.

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

return the rows of a matrix expression

Definition at line 60 of file Scale.h.

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

return the size for a vector

Definition at line 53 of file Scale.h.

Member Data Documentation

template<typename Scalar, class Exp>
Exp const& mpblocks::cuda::linalg::Scale< Scalar, Exp >::m_A
private

Definition at line 40 of file Scale.h.

template<typename Scalar, class Exp>
Scalar mpblocks::cuda::linalg::Scale< Scalar, Exp >::m_s
private

Definition at line 39 of file Scale.h.


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