Distributed Ranges
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
dr::__detail::csr_matrix_base< T, I, Allocator > Class Template Reference

Public Types

using value_type = std::pair< T, I >
 
using scalar_type = T
 
using index_type = I
 
using size_type = std::size_t
 
using difference_type = std::ptrdiff_t
 
using allocator_type = Allocator
 
using key_type = dr::index< I >
 
using map_type = T
 
using backend_allocator_type = typename std::allocator_traits< allocator_type >::template rebind_alloc< value_type >
 
using aggregator_allocator_type = typename std::allocator_traits< allocator_type >::template rebind_alloc< std::vector< value_type > >
 
using row_type = std::vector< value_type, backend_allocator_type >
 
using backend_type = std::vector< row_type, aggregator_allocator_type >
 
using iterator = typename backend_type::iterator
 
using const_iterator = typename backend_type::const_iterator
 

Public Member Functions

 csr_matrix_base (dr::index< I > shape, std::size_t nnz)
 
dr::index< I > shape () const noexcept
 
size_type size () const noexcept
 
iterator begin () noexcept
 
const_iterator begin () const noexcept
 
iterator end () noexcept
 
const_iterator end () const noexcept
 
template<typename InputIt >
void push_back (InputIt first, InputIt last)
 
void push_back (index_type row, const value_type &value)
 
void sort ()
 
 csr_matrix_base (const csr_matrix_base &)=default
 
 csr_matrix_base (csr_matrix_base &&)=default
 
csr_matrix_baseoperator= (const csr_matrix_base &)=default
 
csr_matrix_baseoperator= (csr_matrix_base &&)=default
 

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