Alien  1.3.0
User documentation
Loading...
Searching...
No Matches
Alien::DoKLocalMatrixIndexer Class Reference

Local matrix indexer using HashMap. More...

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

Public Member Functions

 DoKLocalMatrixIndexer (const DoKLocalMatrixIndexer &src)=default
 DoKLocalMatrixIndexer (DoKLocalMatrixIndexer &&src)=default
DoKLocalMatrixIndexer & operator= (const DoKLocalMatrixIndexer &src)=default
DoKLocalMatrixIndexer & operator= (DoKLocalMatrixIndexer &&src)=default
void associate (Integer i, Integer j, Offset offset) override
std::optional< Offset > find (Integer i, Integer j) override
Offset create (Integer i, Integer j, Offset &tentative_offset) override
IReverseIndexersort (Arccore::Array< Renumbering > &perm) override
ILocalMatrixIndexerclone () const override

Additional Inherited Members

Public Types inherited from Alien::ILocalMatrixIndexer
typedef Integer Offset
typedef std::pair< Offset, Offset > Renumbering
typedef std::pair< Int32, Int32 > Key

Detailed Description

Local matrix indexer using HashMap.

Definition at line 34 of file DoKLocalMatrixIndexer.h.

Member Function Documentation

◆ associate()

void Alien::DoKLocalMatrixIndexer::associate ( Integer i,
Integer j,
Offset offset )
overridevirtual

Registers an offset with a matrix position (i,j)

Parameters
iid of the row
jid of the column
offset

Implements Alien::ILocalMatrixIndexer.

Definition at line 38 of file DoKLocalMatrixIndexer.cc.

◆ clone()

ILocalMatrixIndexer * Alien::DoKLocalMatrixIndexer::clone ( ) const
overridevirtual

Implements Alien::ILocalMatrixIndexer.

Definition at line 67 of file DoKLocalMatrixIndexer.cc.

◆ create()

DoKLocalMatrixIndexer::Offset Alien::DoKLocalMatrixIndexer::create ( Integer i,
Integer j,
Offset & tentative_offset )
overridevirtual

Creates a new offset for matrix position (i,j)

Parameters
i
j
tentative_offsethint on what the offset should be
Returns
the offset (can be different from tentative_offset)

Implements Alien::ILocalMatrixIndexer.

Definition at line 55 of file DoKLocalMatrixIndexer.cc.

◆ find()

std::optional< ILocalMatrixIndexer::Offset > Alien::DoKLocalMatrixIndexer::find ( Integer i,
Integer j )
overridevirtual

Finds the offset associated with a matrix position (i,j)

Parameters
i
j
Returns
offset if found

Implements Alien::ILocalMatrixIndexer.

Definition at line 44 of file DoKLocalMatrixIndexer.cc.

◆ sort()

IReverseIndexer * Alien::DoKLocalMatrixIndexer::sort ( Arccore::Array< Renumbering > & perm)
overridevirtual

Creates a new indexer, based on offset permutations.

Parameters
permpermutation array, to be filled by this function.
Returns
new indexer, used to compact matrix

Implements Alien::ILocalMatrixIndexer.

Definition at line 92 of file DoKLocalMatrixIndexer.cc.


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