spla
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
spla::CpuDok< T > Class Template Reference

Dictionary of keys sparse matrix format. More...

#include <cpu_formats.hpp>

Inheritance diagram for spla::CpuDok< T >:
Inheritance graph
[legend]
Collaboration diagram for spla::CpuDok< T >:
Collaboration graph
[legend]

Public Types

using Key = std::pair< uint, uint >
 
using Reduce = std::function< T(T accum, T added)>
 

Public Member Functions

 ~CpuDok () override=default
 
- Public Member Functions inherited from spla::TDecoration< T >
 ~TDecoration () override=default
 
virtual uint get_n_values () const
 
- Public Member Functions inherited from spla::RefCnt
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_hashAx
 
Reduce reduce = [](T, T a) { return a; }
 
- Public Attributes inherited from spla::TDecoration< T >
uint values = 0
 

Static Public Attributes

static constexpr FormatMatrix FORMAT = FormatMatrix::CpuDok
 

Detailed Description

template<typename T>
class spla::CpuDok< T >

Dictionary of keys sparse matrix format.

Template Parameters
TType of elements

Member Typedef Documentation

◆ Key

template<typename T >
using spla::CpuDok< T >::Key = std::pair<uint, uint>

◆ Reduce

template<typename T >
using spla::CpuDok< T >::Reduce = std::function<T(T accum, T added)>

Constructor & Destructor Documentation

◆ ~CpuDok()

template<typename T >
spla::CpuDok< T >::~CpuDok ( )
overridedefault

Member Data Documentation

◆ Ax

template<typename T >
robin_hood::unordered_flat_map<Key, T, pair_hash> spla::CpuDok< T >::Ax

◆ FORMAT

template<typename T >
constexpr FormatMatrix spla::CpuDok< T >::FORMAT = FormatMatrix::CpuDok
staticconstexpr

◆ reduce

template<typename T >
Reduce spla::CpuDok< T >::reduce = [](T, T a) { return a; }

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