ViennaCL - The Vienna Computing Library  1.5.2
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
implicit_matrix_base< SCALARTYPE > Class Template Reference

Base class for representing matrices where the individual entries are not all stored explicitly, e.g. identity_matrix<> More...

#include <matrix.hpp>

Public Types

typedef SCALARTYPE const & const_reference
typedef SCALARTYPE cpu_value_type

Public Member Functions

size_type size1 () const
size_type size2 () const
SCALARTYPE value () const
bool is_value_static () const
bool diag () const
const_reference operator() (size_type i, size_type j) const

Protected Types

typedef vcl_size_t size_type

Protected Member Functions

 implicit_matrix_base (size_type size1, size_type size2, std::pair< SCALARTYPE, bool > value, bool diag)

Protected Attributes

size_type size1_
size_type size2_
std::pair< SCALARTYPE, bool > value_
bool diag_

Detailed Description

template<typename SCALARTYPE>
class viennacl::implicit_matrix_base< SCALARTYPE >

Base class for representing matrices where the individual entries are not all stored explicitly, e.g. identity_matrix<>

Examples are identity_matrix, scalar_matrix, and zero_matrix.


Member Typedef Documentation

typedef SCALARTYPE const& const_reference
typedef SCALARTYPE cpu_value_type
typedef vcl_size_t size_type [protected]

Constructor & Destructor Documentation

implicit_matrix_base ( size_type  size1,
size_type  size2,
std::pair< SCALARTYPE, bool >  value,
bool  diag 
) [inline, protected]

Member Function Documentation

bool diag ( ) const [inline]
bool is_value_static ( ) const [inline]
const_reference operator() ( size_type  i,
size_type  j 
) const [inline]
size_type size1 ( ) const [inline]
size_type size2 ( ) const [inline]
SCALARTYPE value ( ) const [inline]

Field Documentation

bool diag_ [protected]
size_type size1_ [protected]
size_type size2_ [protected]
std::pair<SCALARTYPE, bool> value_ [protected]

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