Basix
Loading...
Searching...
No Matches
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{
39template <std::floating_point T>
40std::map<cell::type, std::pair<std::vector<T>, std::array<std::size_t, 3>>>
42 cell::type cell_type,
43 std::array<std::vector<md::mdspan<const T, md::dextents<std::size_t, 2>>>,
44 4>
45 x,
46 std::array<std::vector<md::mdspan<const T, md::dextents<std::size_t, 4>>>,
47 4>
48 M,
49 md::mdspan<const T, md::dextents<std::size_t, 2>> coeffs, int degree,
50 std::size_t vs, maps::type map_type, polyset::type ptype);
51
52} // 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, std::array< std::vector< md::mdspan< const T, md::dextents< std::size_t, 2 > > >, 4 > x, std::array< std::vector< md::mdspan< const T, md::dextents< std::size_t, 4 > > >, 4 > M, md::mdspan< const T, md::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:501
type
Map type.
Definition maps.h:40
type
Cell type.
Definition polyset.h:137