spla
Public Member Functions | Static Public Member Functions | List of all members
spla::TMatrix< T > Class Template Referencefinal

Matrix interface implementation with type information bound. More...

#include <tmatrix.hpp>

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

Public Member Functions

 TMatrix (uint n_rows, uint n_cols)
 
 ~TMatrix () override=default
 
uint get_n_rows () override
 
uint get_n_cols () override
 
ref_ptr< Typeget_type () override
 
void set_label (std::string label) override
 
const std::string & get_label () const override
 
Status set_format (FormatMatrix format) override
 
Status set_fill_value (const ref_ptr< Scalar > &value) override
 
Status set_reduce (ref_ptr< OpBinary > resolve_duplicates) override
 
Status set_int (uint row_id, uint col_id, std::int32_t value) override
 
Status set_uint (uint row_id, uint col_id, std::uint32_t value) override
 
Status set_float (uint row_id, uint col_id, float value) override
 
Status get_int (uint row_id, uint col_id, int32_t &value) override
 
Status get_uint (uint row_id, uint col_id, uint32_t &value) override
 
Status get_float (uint row_id, uint col_id, float &value) override
 
Status build (const ref_ptr< MemView > &keys1, const ref_ptr< MemView > &keys2, const ref_ptr< MemView > &values) override
 
Status read (ref_ptr< MemView > &keys1, ref_ptr< MemView > &keys2, ref_ptr< MemView > &values) override
 
Status clear () override
 
template<typename Decorator >
Decorator * get ()
 
void validate_rw (FormatMatrix format)
 
void validate_rwd (FormatMatrix format)
 
void validate_wd (FormatMatrix format)
 
void validate_ctor (FormatMatrix format)
 
bool is_valid (FormatMatrix format) const
 
get_fill_value () const
 
- Public Member Functions inherited from spla::Matrix
 ~Matrix () override=default
 
virtual Status get_int (uint row_id, uint col_id, std::int32_t &value)=0
 
virtual Status get_uint (uint row_id, uint col_id, std::uint32_t &value)=0
 
- Public Member Functions inherited from spla::Object
 ~Object () override=default
 
- 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
 

Static Public Member Functions

static StorageManagerMatrix< T > * get_storage_manager ()
 
- Static Public Member Functions inherited from spla::Matrix
static ref_ptr< Matrixmake (uint n_rows, uint n_cols, const ref_ptr< Type > &type)
 Make new matrix instance with specified dim and values type. More...
 

Detailed Description

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

Matrix interface implementation with type information bound.

Template Parameters
TType of stored elements

Constructor & Destructor Documentation

◆ ~TMatrix()

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

Member Function Documentation

◆ get()

template<typename T >
template<typename Decorator >
Decorator* spla::TMatrix< T >::get ( )
inline

◆ get_fill_value()

template<typename T >
T spla::TMatrix< T >::get_fill_value ( ) const
inline

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