Simple adaptor that transforms a pair of indices (i,j) into a single index.
More...
#include <MeshVizXLM/mesh/MbIjToI.h>
Public Member Functions | |
MbIjToI (size_t numCellI) | |
size_t | getI (size_t i, size_t j) const |
Transforms matrix(N,M) indices into a single index.
MbIjToI::MbIjToI | ( | size_t | numCellI | ) | [inline] |
Constructor.
numCellI | number of cells on the first axis of the input matrix. |
size_t MbIjToI::getI | ( | size_t | i, | |
size_t | j | |||
) | const [inline] |
Computes the index associated with the pair (i,j).