#include <shark/LinAlg/BLAS/matrix_sparse.hpp>
Classes | |
class | reference |
Public Types | |
typedef T const & | const_reference |
typedef elementwise< sparse_tag > | evaluation_category |
typedef row_major | orientation |
typedef iterators::compressed_storage_iterator< value_type const, size_type const > | const_row_iterator |
typedef iterators::compressed_storage_iterator< value_type, size_type const > | row_iterator |
typedef iterators::compressed_storage_iterator< value_type const, size_type const > | const_column_iterator |
typedef iterators::compressed_storage_iterator< value_type, size_type const > | column_iterator |
Public Member Functions | |
compressed_matrix () | |
compressed_matrix (size_type size1, size_type size2, size_type non_zeros=0) | |
template<class E > | |
compressed_matrix (matrix_expression< E, cpu_tag > const &e, size_type non_zeros=0) | |
size_type | size1 () const |
size_type | size2 () const |
std::size_t | nnz_capacity () const |
std::size_t | row_capacity (size_type row) const |
std::size_t | nnz () const |
std::size_t | inner_nnz (size_type row) const |
storage_type | raw_storage () |
Returns the underlying storage structure for low level access. More... | |
const_storage_type | raw_storage () const |
Returns the underlying storage structure for low level access. More... | |
device_traits< cpu_tag >::queue_type & | queue () |
void | set_filled (std::size_t non_zeros) |
void | set_row_filled (size_type i, std::size_t non_zeros) |
void | resize (size_type size1, size_type size2) |
void | reserve (std::size_t non_zeros) |
void | reserve_row (size_type row, std::size_t non_zeros) |
void | clear () |
const_reference | operator() (size_type i, size_type j) const |
reference | operator() (size_type i, size_type j) |
template<class C > | |
compressed_matrix & | operator= (matrix_container< C, cpu_tag > const &m) |
template<class E > | |
compressed_matrix & | operator= (matrix_expression< E, cpu_tag > const &e) |
void | swap (compressed_matrix &m) |
const_row_iterator | row_begin (size_type i) const |
const_row_iterator | row_end (size_type i) const |
row_iterator | row_begin (size_type i) |
row_iterator | row_end (size_type i) |
row_iterator | set_element (row_iterator pos, size_type index, value_type value) |
row_iterator | clear_range (row_iterator start, row_iterator end) |
row_iterator | clear_element (row_iterator elem) |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int) |
Public Member Functions inherited from remora::matrix_container< compressed_matrix< T, I >, cpu_tag > | |
const container_type & | operator() () const |
container_type & | operator() () |
Public Member Functions inherited from remora::matrix_expression< compressed_matrix< T, I >, cpu_tag > | |
const expression_type & | operator() () const |
expression_type & | operator() () |
Friends | |
void | swap (compressed_matrix &m1, compressed_matrix &m2) |
void | swap_rows (compressed_matrix &a, size_type i, compressed_matrix &b, size_type j) |
void | swap_rows (compressed_matrix &a, size_type i, size_type j) |
Definition at line 40 of file matrix_sparse.hpp.
typedef iterators::compressed_storage_iterator<value_type, size_type const> remora::compressed_matrix< T, I >::column_iterator |
Definition at line 353 of file matrix_sparse.hpp.
typedef iterators::compressed_storage_iterator<value_type const, size_type const> remora::compressed_matrix< T, I >::const_column_iterator |
Definition at line 352 of file matrix_sparse.hpp.
typedef T const& remora::compressed_matrix< T, I >::const_reference |
Definition at line 47 of file matrix_sparse.hpp.
typedef iterators::compressed_storage_iterator<value_type const, size_type const> remora::compressed_matrix< T, I >::const_row_iterator |
Definition at line 325 of file matrix_sparse.hpp.
typedef elementwise<sparse_tag> remora::compressed_matrix< T, I >::evaluation_category |
Definition at line 112 of file matrix_sparse.hpp.
typedef row_major remora::compressed_matrix< T, I >::orientation |
Definition at line 113 of file matrix_sparse.hpp.
typedef iterators::compressed_storage_iterator<value_type, size_type const> remora::compressed_matrix< T, I >::row_iterator |
Definition at line 326 of file matrix_sparse.hpp.
|
inline |
Definition at line 116 of file matrix_sparse.hpp.
|
inline |
Definition at line 120 of file matrix_sparse.hpp.
|
inline |
Definition at line 127 of file matrix_sparse.hpp.
References remora::assign().
|
inline |
Definition at line 227 of file matrix_sparse.hpp.
|
inline |
Definition at line 417 of file matrix_sparse.hpp.
References remora::compressed_matrix< T, I >::clear_range(), and remora::compressed_matrix< T, I >::row_end().
|
inline |
Definition at line 394 of file matrix_sparse.hpp.
References remora::row(), remora::iterators::compressed_storage_iterator< T, I >::row(), and remora::compressed_matrix< T, I >::row_begin().
Referenced by remora::compressed_matrix< T, I >::clear_element().
|
inline |
Definition at line 153 of file matrix_sparse.hpp.
References remora::row().
Referenced by remora::compressed_matrix< T, I >::set_element().
|
inline |
Definition at line 150 of file matrix_sparse.hpp.
Referenced by shark::Batch< shark::blas::compressed_vector< T > >::createBatchFromRange().
|
inline |
Definition at line 143 of file matrix_sparse.hpp.
Referenced by remora::compressed_matrix< T, I >::operator=(), remora::compressed_matrix< T, I >::reserve(), and remora::compressed_matrix< T, I >::reserve_row().
|
inline |
Definition at line 233 of file matrix_sparse.hpp.
References remora::compressed_matrix< T, I >::size1(), and remora::compressed_matrix< T, I >::size2().
|
inline |
Definition at line 248 of file matrix_sparse.hpp.
References remora::compressed_matrix< T, I >::reference::reference(), remora::compressed_matrix< T, I >::size1(), and remora::compressed_matrix< T, I >::size2().
|
inline |
Definition at line 256 of file matrix_sparse.hpp.
References remora::assign(), remora::compressed_matrix< T, I >::resize(), remora::compressed_matrix< T, I >::size1(), and remora::compressed_matrix< T, I >::size2().
|
inline |
Definition at line 262 of file matrix_sparse.hpp.
References remora::compressed_matrix< T, I >::nnz_capacity(), and remora::compressed_matrix< T, I >::swap().
|
inline |
Definition at line 167 of file matrix_sparse.hpp.
|
inline |
Returns the underlying storage structure for low level access.
Definition at line 158 of file matrix_sparse.hpp.
|
inline |
Returns the underlying storage structure for low level access.
Definition at line 163 of file matrix_sparse.hpp.
|
inline |
Definition at line 195 of file matrix_sparse.hpp.
References remora::compressed_matrix< T, I >::nnz_capacity().
Referenced by remora::compressed_matrix< T, I >::reserve_row().
|
inline |
Definition at line 202 of file matrix_sparse.hpp.
References remora::min(), remora::compressed_matrix< T, I >::nnz_capacity(), remora::compressed_matrix< T, I >::reserve(), remora::row(), remora::compressed_matrix< T, I >::row_capacity(), and remora::compressed_matrix< T, I >::size1().
Referenced by remora::compressed_matrix< T, I >::set_element().
|
inline |
Definition at line 185 of file matrix_sparse.hpp.
References remora::compressed_matrix< T, I >::size1(), and remora::compressed_matrix< T, I >::size2().
Referenced by remora::compressed_matrix< T, I >::operator=().
|
inline |
Definition at line 328 of file matrix_sparse.hpp.
References remora::compressed_matrix< T, I >::size1().
Referenced by remora::compressed_matrix< T, I >::clear_range(), and remora::compressed_matrix< T, I >::set_element().
|
inline |
Definition at line 340 of file matrix_sparse.hpp.
References remora::compressed_matrix< T, I >::size1().
|
inline |
Definition at line 146 of file matrix_sparse.hpp.
References remora::row(), and remora::compressed_matrix< T, I >::size1().
Referenced by remora::compressed_matrix< T, I >::reserve_row(), remora::compressed_matrix< T, I >::set_element(), and remora::compressed_matrix< T, I >::set_row_filled().
|
inline |
Definition at line 334 of file matrix_sparse.hpp.
References remora::compressed_matrix< T, I >::size1().
Referenced by remora::compressed_matrix< T, I >::clear_element(), and remora::compressed_matrix< T, I >::set_element().
|
inline |
Definition at line 346 of file matrix_sparse.hpp.
References remora::compressed_matrix< T, I >::size1().
|
inline |
Definition at line 426 of file matrix_sparse.hpp.
|
inline |
Definition at line 355 of file matrix_sparse.hpp.
References remora::iterators::compressed_storage_iterator< T, I >::index(), remora::compressed_matrix< T, I >::inner_nnz(), remora::compressed_matrix< T, I >::reserve_row(), remora::row(), remora::iterators::compressed_storage_iterator< T, I >::row(), remora::compressed_matrix< T, I >::row_begin(), remora::compressed_matrix< T, I >::row_capacity(), remora::compressed_matrix< T, I >::row_end(), and remora::compressed_matrix< T, I >::size1().
|
inline |
Definition at line 171 of file matrix_sparse.hpp.
|
inline |
Definition at line 175 of file matrix_sparse.hpp.
References remora::compressed_matrix< T, I >::row_capacity(), and remora::compressed_matrix< T, I >::size1().
|
inline |
Definition at line 136 of file matrix_sparse.hpp.
Referenced by shark::Batch< shark::blas::compressed_vector< T > >::end(), remora::compressed_matrix< T, I >::operator()(), remora::compressed_matrix< T, I >::operator=(), remora::compressed_matrix< T, I >::reserve_row(), remora::compressed_matrix< T, I >::resize(), remora::compressed_matrix< T, I >::row_begin(), remora::compressed_matrix< T, I >::row_capacity(), remora::compressed_matrix< T, I >::row_end(), remora::compressed_matrix< T, I >::set_element(), remora::compressed_matrix< T, I >::set_row_filled(), and shark::Batch< shark::blas::compressed_vector< T > >::size().
|
inline |
Definition at line 139 of file matrix_sparse.hpp.
Referenced by remora::compressed_matrix< T, I >::operator()(), remora::compressed_matrix< T, I >::operator=(), and remora::compressed_matrix< T, I >::resize().
|
inline |
Definition at line 269 of file matrix_sparse.hpp.
References shark::swap().
Referenced by remora::compressed_matrix< T, I >::operator=().
|
friend |
Definition at line 279 of file matrix_sparse.hpp.
|
friend |
Definition at line 283 of file matrix_sparse.hpp.
|
friend |
Definition at line 320 of file matrix_sparse.hpp.