43 const std::vector<std::vector<std::vector<int>>>&
entity_dofs,
45 const std::vector<int>& parent_map,
46 const std::vector<ElementDofLayout>& sub_layouts);
92 const std::vector<int>&
entity_dofs(
int dim,
int entity_index)
const;
101 const std::vector<std::vector<std::vector<int>>>&
entity_dofs_all()
const;
105 const std::vector<std::vector<std::vector<int>>>&
117 std::vector<int>
sub_view(std::span<const int> component)
const;
132 std::vector<int> _parent_map;
138 std::array<int, 4> _num_entity_dofs;
142 std::array<int, 4> _num_entity_closure_dofs;
146 std::vector<std::vector<std::vector<int>>> _entity_dofs;
149 std::vector<std::vector<std::vector<int>>> _entity_closure_dofs;
153 std::vector<ElementDofLayout> _sub_dofmaps;
Definition ElementDofLayout.h:30
const std::vector< int > & entity_closure_dofs(int dim, int entity_index) const
Definition ElementDofLayout.cpp:80
ElementDofLayout copy() const
Copy the DOF layout, discarding any parent information.
Definition ElementDofLayout.cpp:45
int num_entity_dofs(int dim) const
Definition ElementDofLayout.cpp:63
const std::vector< int > & entity_dofs(int dim, int entity_index) const
Definition ElementDofLayout.cpp:73
std::vector< int > sub_view(std::span< const int > component) const
Definition ElementDofLayout.cpp:113
const std::vector< std::vector< std::vector< int > > > & entity_closure_dofs_all() const
Definition ElementDofLayout.cpp:92
ElementDofLayout(ElementDofLayout &&dofmap)=default
Move constructor.
bool is_view() const
Definition ElementDofLayout.cpp:140
ElementDofLayout(int block_size, const std::vector< std::vector< std::vector< int > > > &entity_dofs, const std::vector< std::vector< std::vector< int > > > &entity_closure_dofs, const std::vector< int > &parent_map, const std::vector< ElementDofLayout > &sub_layouts)
Definition ElementDofLayout.cpp:18
int num_entity_closure_dofs(int dim) const
Definition ElementDofLayout.cpp:68
~ElementDofLayout()=default
Destructor.
ElementDofLayout & operator=(ElementDofLayout &&dofmap)=default
Move assignment.
int block_size() const
Block size.
Definition ElementDofLayout.cpp:138
ElementDofLayout(const ElementDofLayout &dofmap)=default
Copy constructor.
ElementDofLayout & operator=(const ElementDofLayout &dofmap)=default
Copy assignment.
bool operator==(const ElementDofLayout &layout) const
Definition ElementDofLayout.cpp:52
const ElementDofLayout & sub_layout(std::span< const int > component) const
Get sub-dofmap given by list of components, one for each level.
Definition ElementDofLayout.cpp:100
int num_dofs() const
Definition ElementDofLayout.cpp:61
const std::vector< std::vector< std::vector< int > > > & entity_dofs_all() const
Direct access to all entity dofs (dof = _entity_dofs[dim][entity][i])
Definition ElementDofLayout.cpp:86
int num_sub_dofmaps() const
Get number of sub-dofmaps.
Definition ElementDofLayout.cpp:97
Finite element method functionality.
Definition assemble_matrix_impl.h:26
Mesh data structures and algorithms on meshes.
Definition DofMap.h:32
CellType
Cell type identifier.
Definition cell_types.h:22