Alien  1.3.0
Developer documentation
Loading...
Searching...
No Matches
Alien::DoKLocalMatrixT< NNZValue > Class Template Reference

#include <core/alien/kernels/dok/DoKLocalMatrixT.h>

Collaboration diagram for Alien::DoKLocalMatrixT< NNZValue >:

Public Member Functions

DoKLocalMatrixT & operator= (DoKLocalMatrixT &&src) noexcept
DoKLocalMatrixT & operator= (const DoKLocalMatrixT &src)
void setMaxNnz (Integer size)
void set (Int32 i, Int32 j, const NNZValue &val)
NNZValue add (Int32 i, Int32 j, const NNZValue &val)
void compact ()
 Group non-zeros according to indexer.
IReverseIndexergetReverseIndexer () const
ILocalMatrixIndexergetIndexer () const
ConstArrayView< NNZValue > getValues () const
void dump ()

Private Member Functions

void _reallocate (Integer size=0)
ILocalMatrixIndexer::Offset findOffset (Int32 i, Int32 j)

Private Attributes

std::unique_ptr< ILocalMatrixIndexerm_indexer
ILocalMatrixIndexer::Offset m_offset
UniqueArray< NNZValue > m_values
std::unique_ptr< IReverseIndexerm_r_indexer

Detailed Description

template<typename NNZValue>
class Alien::DoKLocalMatrixT< NNZValue >

Matrix storage using Dictionary Of Keys

Template Parameters
NNZValueScalar type of the non-zeros of the matrix

Definition at line 33 of file DoKLocalMatrixT.h.

Constructor & Destructor Documentation

◆ DoKLocalMatrixT()

template<typename NNZValue>
Alien::DoKLocalMatrixT< NNZValue >::DoKLocalMatrixT ( )
inline

Definition at line 36 of file DoKLocalMatrixT.h.

Member Function Documentation

◆ _reallocate()

template<typename NNZValue>
void Alien::DoKLocalMatrixT< NNZValue >::_reallocate ( Integer size = 0)
inlineprivate

Definition at line 119 of file DoKLocalMatrixT.h.

◆ add()

template<typename NNZValue>
NNZValue Alien::DoKLocalMatrixT< NNZValue >::add ( Int32 i,
Int32 j,
const NNZValue & val )
inline

Definition at line 77 of file DoKLocalMatrixT.h.

◆ compact()

template<typename NNZValue>
void Alien::DoKLocalMatrixT< NNZValue >::compact ( )
inline

Group non-zeros according to indexer.

Definition at line 85 of file DoKLocalMatrixT.h.

◆ dump()

template<typename NNZValue>
void Alien::DoKLocalMatrixT< NNZValue >::dump ( )
inline

Definition at line 101 of file DoKLocalMatrixT.h.

◆ findOffset()

template<typename NNZValue>
ILocalMatrixIndexer::Offset Alien::DoKLocalMatrixT< NNZValue >::findOffset ( Int32 i,
Int32 j )
inlineprivate

Definition at line 126 of file DoKLocalMatrixT.h.

◆ getIndexer()

template<typename NNZValue>
ILocalMatrixIndexer * Alien::DoKLocalMatrixT< NNZValue >::getIndexer ( ) const
inline

Definition at line 97 of file DoKLocalMatrixT.h.

◆ getReverseIndexer()

template<typename NNZValue>
IReverseIndexer * Alien::DoKLocalMatrixT< NNZValue >::getReverseIndexer ( ) const
inline

Definition at line 95 of file DoKLocalMatrixT.h.

◆ getValues()

template<typename NNZValue>
ConstArrayView< NNZValue > Alien::DoKLocalMatrixT< NNZValue >::getValues ( ) const
inline

Definition at line 99 of file DoKLocalMatrixT.h.

◆ operator=() [1/2]

template<typename NNZValue>
DoKLocalMatrixT & Alien::DoKLocalMatrixT< NNZValue >::operator= ( const DoKLocalMatrixT< NNZValue > & src)
inline

Definition at line 56 of file DoKLocalMatrixT.h.

◆ operator=() [2/2]

template<typename NNZValue>
DoKLocalMatrixT & Alien::DoKLocalMatrixT< NNZValue >::operator= ( DoKLocalMatrixT< NNZValue > && src)
inlinenoexcept

Definition at line 44 of file DoKLocalMatrixT.h.

◆ set()

template<typename NNZValue>
void Alien::DoKLocalMatrixT< NNZValue >::set ( Int32 i,
Int32 j,
const NNZValue & val )
inline

Set a non-zero in the matrix

Parameters
i
j
val

Definition at line 71 of file DoKLocalMatrixT.h.

◆ setMaxNnz()

template<typename NNZValue>
void Alien::DoKLocalMatrixT< NNZValue >::setMaxNnz ( Integer size)
inline

Definition at line 65 of file DoKLocalMatrixT.h.

Member Data Documentation

◆ m_indexer

template<typename NNZValue>
std::unique_ptr<ILocalMatrixIndexer> Alien::DoKLocalMatrixT< NNZValue >::m_indexer
private

Definition at line 136 of file DoKLocalMatrixT.h.

◆ m_offset

template<typename NNZValue>
ILocalMatrixIndexer::Offset Alien::DoKLocalMatrixT< NNZValue >::m_offset
private

Definition at line 137 of file DoKLocalMatrixT.h.

◆ m_r_indexer

template<typename NNZValue>
std::unique_ptr<IReverseIndexer> Alien::DoKLocalMatrixT< NNZValue >::m_r_indexer
private

Definition at line 139 of file DoKLocalMatrixT.h.

◆ m_values

template<typename NNZValue>
UniqueArray<NNZValue> Alien::DoKLocalMatrixT< NNZValue >::m_values
private

Definition at line 138 of file DoKLocalMatrixT.h.


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