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 |
| IReverseIndexer * | sort (Arccore::Array< Renumbering > &perm) override |
| ILocalMatrixIndexer * | clone () 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 |
Local matrix indexer using HashMap.
Definition at line 34 of file DoKLocalMatrixIndexer.h.
|
overridevirtual |
Registers an offset with a matrix position (i,j)
| i | id of the row |
| j | id of the column |
| offset |
Implements Alien::ILocalMatrixIndexer.
Definition at line 38 of file DoKLocalMatrixIndexer.cc.
|
overridevirtual |
Implements Alien::ILocalMatrixIndexer.
Definition at line 67 of file DoKLocalMatrixIndexer.cc.
|
overridevirtual |
Creates a new offset for matrix position (i,j)
| i | |
| j | |
| tentative_offset | hint on what the offset should be |
Implements Alien::ILocalMatrixIndexer.
Definition at line 55 of file DoKLocalMatrixIndexer.cc.
|
overridevirtual |
Finds the offset associated with a matrix position (i,j)
| i | |
| j |
Implements Alien::ILocalMatrixIndexer.
Definition at line 44 of file DoKLocalMatrixIndexer.cc.
|
overridevirtual |
Creates a new indexer, based on offset permutations.
| perm | permutation array, to be filled by this function. |
Implements Alien::ILocalMatrixIndexer.
Definition at line 92 of file DoKLocalMatrixIndexer.cc.