Basix
Toggle main menu visibility
Loading...
Searching...
No Matches
cpp
basix
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
21
namespace
basix::doftransforms
22
{
39
template
<std::
float
ing_po
int
T>
40
std::map<cell::type, std::pair<std::vector<T>, std::array<std::size_t, 3>>>
41
compute_entity_transformations
(
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
basix::cell::type
type
Cell type.
Definition
cell.h:21
basix::doftransforms
Functions to transform DOFs in high degree Lagrange spaces. The functions in this namespace calculate...
Definition
dof-transformations.h:22
basix::doftransforms::compute_entity_transformations
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
basix::maps::type
type
Map type.
Definition
maps.h:40
basix::polyset::type
type
Cell type.
Definition
polyset.h:137
Generated by
1.17.0