44 const std::vector<std::vector<std::vector<int>>>&
entity_dofs,
46 const std::vector<int>& parent_map,
47 const std::vector<ElementDofLayout>& sub_layouts);
82 const std::vector<int>&
entity_dofs(
int dim,
int entity_index)
const;
91 const std::vector<std::vector<std::vector<int>>>&
entity_dofs_all()
const;
95 const std::vector<std::vector<std::vector<int>>>&
107 std::vector<int>
sub_view(std::span<const int> component)
const;
122 std::vector<int> _parent_map;
129 std::vector<std::vector<std::vector<int>>> _entity_dofs;
132 std::vector<std::vector<std::vector<int>>> _entity_closure_dofs;
136 std::vector<ElementDofLayout> _sub_dofmaps;
const std::vector< int > & entity_closure_dofs(int dim, int entity_index) const
Definition ElementDofLayout.cpp:64
ElementDofLayout copy() const
Copy the DOF layout, discarding any parent information.
Definition ElementDofLayout.cpp:41
const std::vector< int > & entity_dofs(int dim, int entity_index) const
Definition ElementDofLayout.cpp:57
std::vector< int > sub_view(std::span< const int > component) const
Definition ElementDofLayout.cpp:97
const std::vector< std::vector< std::vector< int > > > & entity_closure_dofs_all() const
Definition ElementDofLayout.cpp:76
ElementDofLayout(ElementDofLayout &&dofmap)=default
Move constructor.
bool is_view() const
Definition ElementDofLayout.cpp:124
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
~ElementDofLayout()=default
Destructor.
ElementDofLayout & operator=(ElementDofLayout &&dofmap)=default
Move assignment.
int block_size() const
Block size.
Definition ElementDofLayout.cpp:122
ElementDofLayout(const ElementDofLayout &dofmap)=default
Copy constructor.
ElementDofLayout & operator=(const ElementDofLayout &dofmap)=default
Copy assignment.
bool operator==(const ElementDofLayout &layout) const
Definition ElementDofLayout.cpp:48
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:84
int num_dofs() const
Definition ElementDofLayout.cpp:55
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:70
int num_sub_dofmaps() const
Get number of sub-dofmaps.
Definition ElementDofLayout.cpp:81
Finite element method functionality.
Definition assemble_expression_impl.h:23
Mesh data structures and algorithms on meshes.
Definition DofMap.h:32
CellType
Cell type identifier.
Definition cell_types.h:22