ViennaCL - The Vienna Computing Library
1.5.1
|
Adapts a constant sparse matrix type made up from std::vector<std::map<SizeType, SCALARTYPE> > to basic ublas-compatibility. More...
#include <adapter.hpp>
Public Types | |
typedef const_sparse_matrix_adapted_iterator < SCALARTYPE, SizeType, true, true > | const_iterator1 |
typedef const_sparse_matrix_adapted_iterator < SCALARTYPE, SizeType, false, true > | const_iterator2 |
typedef const_sparse_matrix_adapted_iterator < SCALARTYPE, SizeType, true, false > | const_reverse_iterator1 |
typedef SCALARTYPE | value_type |
typedef vcl_size_t | size_type |
Public Member Functions | |
const_sparse_matrix_adapter (std::vector< std::map< SizeType, SCALARTYPE > > const &mat) | |
const_sparse_matrix_adapter (std::vector< std::map< SizeType, SCALARTYPE > > const &mat, size_type num_rows, size_type num_cols) | |
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() (SizeType i, SizeType j) const |
Adapts a constant sparse matrix type made up from std::vector<std::map<SizeType, SCALARTYPE> > to basic ublas-compatibility.
SCALARTYPE | either float or double |
typedef const_sparse_matrix_adapted_iterator<SCALARTYPE, SizeType, true, true> const_iterator1 |
Reimplemented in sparse_matrix_adapter< SCALARTYPE, SizeType >.
typedef const_sparse_matrix_adapted_iterator<SCALARTYPE, SizeType, false, true> const_iterator2 |
Reimplemented in sparse_matrix_adapter< SCALARTYPE, SizeType >.
typedef const_sparse_matrix_adapted_iterator<SCALARTYPE, SizeType, true, false> const_reverse_iterator1 |
typedef vcl_size_t size_type |
Reimplemented in sparse_matrix_adapter< SCALARTYPE, SizeType >.
typedef SCALARTYPE value_type |
const_sparse_matrix_adapter | ( | std::vector< std::map< SizeType, SCALARTYPE > > const & | mat | ) | [inline] |
const_sparse_matrix_adapter | ( | std::vector< std::map< SizeType, SCALARTYPE > > const & | mat, |
size_type | num_rows, | ||
size_type | num_cols | ||
) | [inline] |
const_iterator1 begin1 | ( | ) | const [inline] |
Reimplemented in sparse_matrix_adapter< SCALARTYPE, SizeType >.
const_iterator2 begin2 | ( | ) | const [inline] |
Reimplemented in sparse_matrix_adapter< SCALARTYPE, SizeType >.
const_iterator1 end1 | ( | ) | const [inline] |
Reimplemented in sparse_matrix_adapter< SCALARTYPE, SizeType >.
const_iterator2 end2 | ( | ) | const [inline] |
Reimplemented in sparse_matrix_adapter< SCALARTYPE, SizeType >.
SCALARTYPE operator() | ( | SizeType | i, |
SizeType | j | ||
) | const [inline] |
const_reverse_iterator1 rbegin1 | ( | ) | const [inline] |
const_reverse_iterator1 rend1 | ( | ) | const [inline] |
Reimplemented in sparse_matrix_adapter< SCALARTYPE, SizeType >.
Reimplemented in sparse_matrix_adapter< SCALARTYPE, SizeType >.