basix.utils#
Utility functions.
Functions
|
Compute the index of a multi-index in a simplex of dimension 0 to 3. |
- basix.utils.index(p: int | None = None, q: int | None = None, r: int | None = None) int#
Compute the index of a multi-index in a simplex of dimension 0 to 3.
With no arguments, return the basis value index for a point.
- Parameters:
p – Index in x.
q – Index in y.
r – Index in z.
- Returns:
Index in a flattened 1D array.