Indexing. More...
Functions | |
constexpr int | idx (int p) |
constexpr int | idx (int p, int q) |
constexpr int | idx (int p, int q, int r) |
Indexing.
|
constexpr |
Compute trivial indexing in a 1D array (for completeness)
p | Index in x |
|
constexpr |
Compute indexing in a 2D triangular array compressed into a 1D array. This can be used to find the index of a derivative returned by FiniteElement::tabulate
. For instance to find d2N/dx2, use FiniteElement::tabulate(2, points)[idx(2, 0)];
p | Index in x |
q | Index in y |
|
constexpr |
Compute indexing in a 3D tetrahedral array compressed into a 1D array
p | Index in x |
q | Index in y |
r | Index in z |