DOLFIN-X
DOLFIN-X C++ interface
dofs_permutation.h
1 // Copyright (C) 2019 Matthew Scroggs
2 //
3 // This file is part of DOLFINX (https://www.fenicsproject.org)
4 //
5 // SPDX-License-Identifier: LGPL-3.0-or-later
6 
7 #include <Eigen/Dense>
8 #include <dolfinx/mesh/cell_types.h>
9 #include <vector>
10 
11 namespace dolfinx
12 {
13 
14 namespace mesh
15 {
16 class Topology;
17 } // namespace mesh
18 
19 namespace fem
20 {
21 class ElementDofLayout;
22 
29 Eigen::Array<int, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor>
30 compute_dof_permutations(const mesh::Topology& topology,
31  const fem::ElementDofLayout& dof_layout);
32 
33 } // namespace fem
34 } // namespace dolfinx
Eigen::Array< int, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > compute_dof_permutations(const mesh::Topology &topology, const fem::ElementDofLayout &dof_layout)
Return the dof permutations for all cells. Each row contains the numbers from 0 to (number of dofs on...
Definition: dofs_permutation.cpp:284