Basix 0.4.0

Home     Installation     Demos     C++ docs     Python docs

quadrature.h
1 // Copyright (c) 2020 Chris Richardson
2 // FEniCS Project
3 // SPDX-License-Identifier: MIT
4 
5 #pragma once
6 
7 #include "cell.h"
8 #include <utility>
9 #include <vector>
10 #include <xtensor/xtensor.hpp>
11 
14 {
15 
17 enum class type
18 {
19  Default = 0,
20  gauss_jacobi = 1,
21  gll = 2,
22  xiao_gimbutas = 3,
23 
24  zienkiewicz_taylor = 20,
25  keast = 21,
26  strang_fix = 22,
27 };
28 
36 std::pair<xt::xarray<double>, std::vector<double>>
37 make_quadrature(const quadrature::type rule, cell::type celltype, int m);
38 
45 std::pair<xt::xarray<double>, std::vector<double>>
46 make_quadrature(cell::type celltype, int m);
47 
54 
58 xt::xtensor<double, 1> get_gll_points(int m);
59 
63 xt::xtensor<double, 1> get_gl_points(int m);
64 
65 } // namespace basix::quadrature
basix::quadrature::make_quadrature
std::pair< xt::xarray< double >, std::vector< double > > make_quadrature(const quadrature::type rule, cell::type celltype, int m)
Definition: quadrature.cpp:5306
basix::quadrature::get_default_rule
quadrature::type get_default_rule(cell::type celltype, int m)
Definition: quadrature.cpp:5277
basix::cell::type
type
Cell type.
Definition: cell.h:18
basix::quadrature
Quadrature rules.
Definition: quadrature.h:13
basix::quadrature::get_gl_points
xt::xtensor< double, 1 > get_gl_points(int m)
Definition: quadrature.cpp:5335
basix::quadrature::get_gll_points
xt::xtensor< double, 1 > get_gll_points(int m)
Definition: quadrature.cpp:5345
basix::quadrature::type
type
Quadrature type.
Definition: quadrature.h:17