10 #include <dolfinx/mesh/cell_types.h>
12 #include <xtensor/xtensor.hpp>
105 std::vector<std::uint8_t>
transpose(
const std::vector<std::uint8_t>& map);
114 xt::xtensor<std::int64_t, 2>
116 const std::vector<std::uint8_t>& p);
Functions for the re-ordering of input mesh topology to the DOLFINx ordering, and transpose orderings...
Definition: cells.h:17
std::vector< std::uint8_t > transpose(const std::vector< std::uint8_t > &map)
Compute the transpose of a re-ordering map.
Definition: cells.cpp:359
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:291
xt::xtensor< std::int64_t, 2 > compute_permutation(const xt::xtensor< std::int64_t, 2 > &cells, const std::vector< std::uint8_t > &p)
Permute cell topology by applying a permutation array for each cell.
Definition: cells.cpp:368
std::int8_t get_vtk_cell_type(mesh::CellType cell, int dim)
Get VTK cell identifier.
Definition: cells.cpp:383
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:326
CellType
Cell type identifier.
Definition: cell_types.h:22