Sparse matrix class based on a vector of binary trees for holding the entries. More...
#include <linalg_util.hpp>
Public Types | |
typedef std::size_t | size_type |
typedef size_type | SizeType |
typedef MapType::iterator | iterator2 |
typedef MapType::const_iterator | const_iterator2 |
typedef MapType | row_type |
typedef MapType | RowType |
Public Member Functions | |
sparse_matrix () | |
sparse_matrix (size_type num_rows, size_type num_cols) | |
size_type | size1 () const |
size_type | size2 () const |
NumericT & | operator() (size_type i, size_type j) |
Non-const access to the entries of the matrix. Use this for assembly. More... | |
NumericT const & | operator() (size_type i, size_type j) const |
MapType const & | row (size_t i) const |
MapType & | row (size_t i) |
size_type | nnz () const |
self_type | trans () const |
self_type | operator* (NumericT factor) const |
self_type & | operator+= (self_type B) |
Sparse matrix class based on a vector of binary trees for holding the entries.
Introduced to overcome the scalability issues of ublas::compressed_matrix
Definition at line 68 of file linalg_util.hpp.
typedef MapType::const_iterator viennashe::math::sparse_matrix< NumericT >::const_iterator2 |
Definition at line 82 of file linalg_util.hpp.
typedef MapType::iterator viennashe::math::sparse_matrix< NumericT >::iterator2 |
Definition at line 81 of file linalg_util.hpp.
typedef MapType viennashe::math::sparse_matrix< NumericT >::row_type |
Definition at line 84 of file linalg_util.hpp.
typedef MapType viennashe::math::sparse_matrix< NumericT >::RowType |
Definition at line 85 of file linalg_util.hpp.
typedef std::size_t viennashe::math::sparse_matrix< NumericT >::size_type |
Definition at line 73 of file linalg_util.hpp.
typedef size_type viennashe::math::sparse_matrix< NumericT >::SizeType |
Definition at line 74 of file linalg_util.hpp.
|
inline |
Definition at line 87 of file linalg_util.hpp.
|
inline |
Definition at line 91 of file linalg_util.hpp.
|
inline |
Definition at line 145 of file linalg_util.hpp.
|
inline |
Non-const access to the entries of the matrix. Use this for assembly.
Definition at line 112 of file linalg_util.hpp.
|
inline |
Definition at line 121 of file linalg_util.hpp.
|
inline |
Definition at line 168 of file linalg_util.hpp.
|
inline |
Definition at line 181 of file linalg_util.hpp.
|
inline |
Definition at line 139 of file linalg_util.hpp.
|
inline |
Definition at line 134 of file linalg_util.hpp.
|
inline |
Definition at line 100 of file linalg_util.hpp.
|
inline |
Definition at line 105 of file linalg_util.hpp.
|
inline |
Definition at line 154 of file linalg_util.hpp.