Basix 0.9.0

Home     Installation     Demos     C++ docs     Python docs

dof-transformations.h
1 // Copyright (c) 2020 Chris Richardson & Matthew Scroggs
2 // FEniCS Project
3 // SPDX-License-Identifier: MIT
4 
5 #pragma once
6 
7 #include "cell.h"
8 #include "maps.h"
9 #include "mdspan.hpp"
10 #include "polyset.h"
11 #include <array>
12 #include <concepts>
13 #include <map>
14 #include <utility>
15 #include <vector>
16 
22 {
39 template <std::floating_point T>
40 std::map<cell::type, std::pair<std::vector<T>, std::array<std::size_t, 3>>>
42  cell::type cell_type,
43  const std::array<
44  std::vector<MDSPAN_IMPL_STANDARD_NAMESPACE::mdspan<
45  const T, MDSPAN_IMPL_STANDARD_NAMESPACE::dextents<std::size_t, 2>>>,
46  4>& x,
47  const std::array<
48  std::vector<MDSPAN_IMPL_STANDARD_NAMESPACE::mdspan<
49  const T, MDSPAN_IMPL_STANDARD_NAMESPACE::dextents<std::size_t, 4>>>,
50  4>& M,
51  MDSPAN_IMPL_STANDARD_NAMESPACE::mdspan<
52  const T, MDSPAN_IMPL_STANDARD_NAMESPACE::dextents<std::size_t, 2>>
53  coeffs,
54  int degree, std::size_t vs, maps::type map_type, polyset::type ptype);
55 
56 } // namespace basix::doftransforms
type
Cell type.
Definition: cell.h:21
Functions to transform DOFs in high degree Lagrange spaces. The functions in this namespace calculate...
Definition: dof-transformations.h:22
std::map< cell::type, std::pair< std::vector< T >, std::array< std::size_t, 3 > > > compute_entity_transformations(cell::type cell_type, const std::array< std::vector< MDSPAN_IMPL_STANDARD_NAMESPACE::mdspan< const T, MDSPAN_IMPL_STANDARD_NAMESPACE::dextents< std::size_t, 2 >>>, 4 > &x, const std::array< std::vector< MDSPAN_IMPL_STANDARD_NAMESPACE::mdspan< const T, MDSPAN_IMPL_STANDARD_NAMESPACE::dextents< std::size_t, 4 >>>, 4 > &M, MDSPAN_IMPL_STANDARD_NAMESPACE::mdspan< const T, MDSPAN_IMPL_STANDARD_NAMESPACE::dextents< std::size_t, 2 >> coeffs, int degree, std::size_t vs, maps::type map_type, polyset::type ptype)
Compute the entity DOF transformations for an element.
Definition: dof-transformations.cpp:498
type
Map type.
Definition: maps.h:39
type
Cell type.
Definition: polyset.h:136