Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/basix/v0.9.0/cpp/lattice_8h_source.html
Home Installation C++ docs Python docs
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
basix::cell::str_to_type
cell::type str_to_type(std::string name)
Definition: cell.cpp:366
basix::cell::type
type
Cell type.
Definition: cell.h:16
basix::cell::type_to_str
const std::string & type_to_str(cell::type type)
Convert cell type enum to string.
Definition: cell.cpp:385