Basix
mappings.h
1 // Copyright (c) 2021 Matthew Scroggs
2 // FEniCS Project
3 // SPDX-License-Identifier: MIT
4 
5 #pragma once
6 
7 #include "span.hpp"
8 #include <Eigen/Dense>
9 #include <string>
10 #include <vector>
11 
13 namespace basix::mapping
14 {
15 
17 enum class type
18 {
19  identity,
20  covariantPiola,
21  contravariantPiola,
22  doubleCovariantPiola,
23  doubleContravariantPiola,
24 };
25 
29 std::function<std::vector<double>(const tcb::span<const double>&,
30  const Eigen::MatrixXd&, const double,
31  const Eigen::MatrixXd&)>
32 get_forward_map(mapping::type mapping_type);
33 
35 const std::string& type_to_str(mapping::type type);
36 
37 } // namespace basix::mapping
Information about mappings.
Definition: mappings.h:14
type
Cell type.
Definition: mappings.h:18
std::function< std::vector< double >const tcb::span< const double > &, const Eigen::MatrixXd &, const double, const Eigen::MatrixXd &)> get_forward_map(mapping::type mapping_type)
Definition: mappings.cpp:74
const std::string & type_to_str(mapping::type type)
Convert mapping type enum to string.
Definition: mappings.cpp:93