11#include <dolfinx/mesh/cell_types.h>
140std::vector<std::uint8_t>
transpose(
const std::vector<std::uint8_t>& map);
151std::vector<std::int64_t>
153 std::array<std::size_t, 2> shape,
154 const std::span<const std::uint8_t>& p);
Functions for the re-ordering of input mesh topology to the DOLFINx ordering, and transpose orderings...
Definition cells.h:18
std::vector< std::uint8_t > transpose(const std::vector< std::uint8_t > &map)
Compute the transpose of a re-ordering map.
Definition cells.cpp:427
std::vector< std::uint8_t > perm_vtk(mesh::CellType type, int num_nodes)
Permutation array to map from VTK to DOLFINx node ordering.
Definition cells.cpp:350
std::vector< std::int64_t > apply_permutation(const std::span< const std::int64_t > &cells, std::array< std::size_t, 2 > shape, const std::span< const std::uint8_t > &p)
Permute cell topology by applying a permutation array for each cell.
Definition cells.cpp:436
std::int8_t get_vtk_cell_type(mesh::CellType cell, int dim)
Get VTK cell identifier.
Definition cells.cpp:455
std::vector< std::uint8_t > perm_gmsh(mesh::CellType type, int num_nodes)
Permutation array to map from Gmsh to DOLFINx node ordering.
Definition cells.cpp:388
CellType
Cell type identifier.
Definition cell_types.h:22