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
People of FEniCS
Roadmap 2021-
FEniCS 2022
Download
Documentation
Community
Governance
Citing
Donate
Basix 0.4.0
Home
Installation
Demos
C++ docs
Python docs
cpp
basix
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 <xtensor/xtensor.hpp>
9
11
namespace
basix::lattice
12
{
30
enum class
type
31
{
32
equispaced = 0,
33
gll = 1,
34
chebyshev = 2,
35
gl = 4,
36
37
chebyshev_plus_endpoints = 10,
38
gl_plus_endpoints = 11,
39
};
40
58
enum class
simplex_method
59
{
60
none = 0,
61
warp = 1,
62
isaac = 2,
63
centroid = 3,
64
};
65
86
xt::xtensor<double, 2>
87
create
(
cell::type
celltype,
int
n,
lattice::type
type
,
bool
exterior,
88
lattice::simplex_method
simplex_method
= lattice::simplex_method::none);
89
90
}
// namespace basix::lattice
basix::lattice::create
xt::xtensor< double, 2 > create(cell::type celltype, int n, lattice::type type, bool exterior, lattice::simplex_method simplex_method=lattice::simplex_method::none)
Definition:
lattice.cpp:783
basix::lattice::type
type
Definition:
lattice.h:30
basix::lattice
Lattices of points.
Definition:
lattice.h:11
basix::cell::type
type
Cell type.
Definition:
cell.h:18
basix::lattice::simplex_method
simplex_method
Definition:
lattice.h:58