{{STYLESHEETS}} {{NAVBAR}}
lattice.h
1 // Copyright (c) 2020 Chris Richardson & Garth Wells
2 // FEniCS Project
3 // SPDX-License-Identifier: MIT
4 
5 #pragma once
6 
7 #include "cell.h"
8 #include <vector>
9 #include <xtensor/xtensor.hpp>
10 
11 namespace basix::lattice
12 {
21 enum class type
22 {
23  equispaced = 0,
24  gll = 1
25 };
26 
28 lattice::type str_to_type(std::string name);
29 
30 // Convert family to string
31 std::string type_to_str(lattice::type type);
32 
52 xt::xtensor<double, 2> create(cell::type celltype, int n, lattice::type type,
53  bool exterior);
54 
55 } // namespace basix::lattice
type
Cell type.
Definition: cell.h:17
cell::type str_to_type(std::string name)
Definition: cell.cpp:366
const std::string & type_to_str(cell::type type)
Convert cell type enum to string.
Definition: cell.cpp:385