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

CPU list-of-list matrix format for fast incremental build. More...

#include <cpu_formats.hpp>

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

Public Types

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

Public Member Functions

 ~CpuLil () 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

std::vector< RowAr {}
 
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::CpuLil
 

Detailed Description

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

CPU list-of-list matrix format for fast incremental build.

Template Parameters
TType of elements

Member Typedef Documentation

◆ Entry

template<typename T >
using spla::CpuLil< T >::Entry = std::pair<uint, T>

◆ Reduce

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

◆ Row

template<typename T >
using spla::CpuLil< T >::Row = std::vector<Entry>

Constructor & Destructor Documentation

◆ ~CpuLil()

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

Member Data Documentation

◆ Ar

template<typename T >
std::vector<Row> spla::CpuLil< T >::Ar {}

◆ FORMAT

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

◆ reduce

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

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