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

Public Types

using value_type = dr::matrix_entry< 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 backend_type = std::vector< value_type, backend_allocator_type >
 
using iterator = typename backend_type::iterator
 
using const_iterator = typename backend_type::const_iterator
 
using reference = dr::matrix_ref< T, I >
 
using const_reference = dr::matrix_ref< std::add_const_t< T >, I >
 
using scalar_reference = T &
 

Public Member Functions

 coo_matrix (dr::index< I > shape)
 
dr::index< I > shape () const noexcept
 
size_type size () const noexcept
 
void reserve (size_type new_cap)
 
iterator begin () noexcept
 
const_iterator begin () const noexcept
 
iterator end () noexcept
 
const_iterator end () const noexcept
 
template<typename InputIt >
void insert (InputIt first, InputIt last)
 
template<typename InputIt >
void push_back (InputIt first, InputIt last)
 
void push_back (const value_type &value)
 
template<typename InputIt >
void assign_tuples (InputIt first, InputIt last)
 
std::pair< iterator, bool > insert (value_type &&value)
 
std::pair< iterator, bool > insert (const value_type &value)
 
template<class M >
std::pair< iterator, bool > insert_or_assign (key_type k, M &&obj)
 
iterator find (key_type key) noexcept
 
const_iterator find (key_type key) const noexcept
 
void reshape (dr::index< I > shape)
 
 coo_matrix (const coo_matrix &)=default
 
 coo_matrix (coo_matrix &&)=default
 
coo_matrixoperator= (const coo_matrix &)=default
 
coo_matrixoperator= (coo_matrix &&)=default
 
std::size_t nbytes () const noexcept
 

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