Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/basix/v0.8.0/cpp/dof-transformations_8h_source.html

Basix 0.5.1

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 <array>
11 #include <map>
12 #include <utility>
13 #include <vector>
14 
20 {
21 
37 std::map<cell::type, std::pair<std::vector<double>, std::array<std::size_t, 3>>>
39  cell::type cell_type,
40  const std::array<
41  std::vector<std::experimental::mdspan<
42  const double, std::experimental::dextents<std::size_t, 2>>>,
43  4>& x,
44  const std::array<
45  std::vector<std::experimental::mdspan<
46  const double, std::experimental::dextents<std::size_t, 4>>>,
47  4>& M,
48  const std::experimental::mdspan<
49  const double, std::experimental::dextents<std::size_t, 2>>& coeffs,
50  int degree, std::size_t vs, maps::type map_type);
51 
52 } // namespace basix::doftransforms
basix::doftransforms::compute_entity_transformations
std::map< cell::type, std::pair< std::vector< double >, std::array< std::size_t, 3 > > > compute_entity_transformations(cell::type cell_type, const std::array< std::vector< std::experimental::mdspan< const double, std::experimental::dextents< std::size_t, 2 >>>, 4 > &x, const std::array< std::vector< std::experimental::mdspan< const double, std::experimental::dextents< std::size_t, 4 >>>, 4 > &M, const std::experimental::mdspan< const double, std::experimental::dextents< std::size_t, 2 >> &coeffs, int degree, std::size_t vs, maps::type map_type)
Compute the entity DOF transformations for an element.
Definition: dof-transformations.cpp:414
basix::cell::type
type
Cell type.
Definition: cell.h:19
basix::maps::type
type
Map type.
Definition: maps.h:16
basix::doftransforms
Definition: dof-transformations.h:19