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