Public Types | Public Member Functions

const_sparse_matrix_adapter< SCALARTYPE > Class Template Reference

Adapts a constant sparse matrix type made up from std::vector<std::map<unsigned int, SCALARTYPE> > to basic ublas-compatibility. More...

#include <adapter.hpp>

Inheritance diagram for const_sparse_matrix_adapter< SCALARTYPE >:
sparse_matrix_adapter< SCALARTYPE >

Public Types

typedef
const_sparse_matrix_adapted_iterator
< SCALARTYPE, true, true > 
const_iterator1
typedef
const_sparse_matrix_adapted_iterator
< SCALARTYPE, false, true > 
const_iterator2
typedef
const_sparse_matrix_adapted_iterator
< SCALARTYPE, true, false > 
const_reverse_iterator1
typedef SCALARTYPE value_type
typedef std::size_t size_type

Public Member Functions

 const_sparse_matrix_adapter (std::vector< std::map< unsigned int, SCALARTYPE > > const &mat)
size_type size1 () const
size_type size2 () const
const_iterator1 begin1 () const
const_iterator1 end1 () const
const_reverse_iterator1 rbegin1 () const
const_reverse_iterator1 rend1 () const
const_iterator2 begin2 () const
const_iterator2 end2 () const
SCALARTYPE operator() (unsigned int i, unsigned int j) const

Detailed Description

template<typename SCALARTYPE>
class viennacl::tools::const_sparse_matrix_adapter< SCALARTYPE >

Adapts a constant sparse matrix type made up from std::vector<std::map<unsigned int, SCALARTYPE> > to basic ublas-compatibility.

Template Parameters:
SCALARTYPE either float or double

Member Typedef Documentation

typedef const_sparse_matrix_adapted_iterator<SCALARTYPE, true, true> const_iterator1
typedef const_sparse_matrix_adapted_iterator<SCALARTYPE, false, true> const_iterator2
typedef std::size_t size_type
typedef SCALARTYPE value_type

Constructor & Destructor Documentation

const_sparse_matrix_adapter ( std::vector< std::map< unsigned int, SCALARTYPE > > const &  mat  )  [inline]

Member Function Documentation

const_iterator1 begin1 (  )  const [inline]
const_iterator2 begin2 (  )  const [inline]
const_iterator1 end1 (  )  const [inline]
const_iterator2 end2 (  )  const [inline]
SCALARTYPE operator() ( unsigned int  i,
unsigned int  j 
) const [inline]
const_reverse_iterator1 rbegin1 (  )  const [inline]
const_reverse_iterator1 rend1 (  )  const [inline]
size_type size1 (  )  const [inline]
size_type size2 (  )  const [inline]

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