spla
|
Dictionary of keys sparse matrix format. More...
#include <cpu_formats.hpp>
Public Types | |
using | Key = std::pair< uint, uint > |
using | Reduce = std::function< T(T accum, T added)> |
Public Member Functions | |
~CpuDok () override=default | |
![]() | |
~TDecoration () override=default | |
virtual uint | get_n_values () const |
![]() | |
virtual | ~RefCnt () |
bool | is_unique () const |
std::int32_t | get_refs () const |
std::int32_t | add_ref () const |
std::int32_t | rel_ref () const |
Public Attributes | |
robin_hood::unordered_flat_map< Key, T, pair_hash > | Ax |
Reduce | reduce = [](T, T a) { return a; } |
![]() | |
uint | values = 0 |
Static Public Attributes | |
static constexpr FormatMatrix | FORMAT = FormatMatrix::CpuDok |
Dictionary of keys sparse matrix format.
T | Type of elements |
using spla::CpuDok< T >::Key = std::pair<uint, uint> |
using spla::CpuDok< T >::Reduce = std::function<T(T accum, T added)> |
|
overridedefault |
robin_hood::unordered_flat_map<Key, T, pair_hash> spla::CpuDok< T >::Ax |
|
staticconstexpr |
Reduce spla::CpuDok< T >::reduce = [](T, T a) { return a; } |