Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/basix/v0.8.0/cpp/namespacebasix_1_1quadrature.html

# Basix 0.4.1

## HomeInstallationDemosC++ docsPython docs

basix::quadrature Namespace Reference

Quadrature rules. More...

## Enumerations

enum  type {
Default = 0, gauss_jacobi = 1, gll = 2, xiao_gimbutas = 3,
zienkiewicz_taylor = 20, keast = 21, strang_fix = 22
}
Quadrature type.

## Functions

std::pair< xt::xtensor< double, 2 >, std::vector< double > > make_quadrature (const quadrature::type rule, cell::type celltype, int m)

std::pair< xt::xtensor< double, 2 >, std::vector< double > > make_quadrature (cell::type celltype, int m)

quadrature::type get_default_rule (cell::type celltype, int m)

xt::xtensor< double, 2 > get_gll_points (int m)

xt::xtensor< double, 2 > get_gl_points (int m)

## Detailed Description

Quadrature rules.

## ◆ get_default_rule()

 quadrature::type basix::quadrature::get_default_rule ( cell::type celltype, int m )

Get the default quadrature type for the given cell and order

Parameters
 [in] celltype The cell type [in] m Maximum degree of polynomial that this quadrature rule will integrate exactly
Returns
The quadrature type that will be used by default

## ◆ get_gl_points()

 xt::xtensor< double, 2 > basix::quadrature::get_gl_points ( int m )

Get Gauss-Legendre (GL) points on the interval [0, 1].

Parameters
 [in] m The number of points
Returns
An array of GL points

## ◆ get_gll_points()

 xt::xtensor< double, 2 > basix::quadrature::get_gll_points ( int m )

Get Gauss-Lobatto-Legendre (GLL) points on the interval [0, 1].

Parameters
 [in] m The number of points
Returns
An array of GLL points

## ◆ make_quadrature() [1/2]

 std::pair< xt::xtensor< double, 2 >, std::vector< double > > basix::quadrature::make_quadrature ( cell::type celltype, int m )

Make a default quadrature rule on reference cell

Parameters
 [in] celltype The cell type [in] m Maximum degree of polynomial that this quadrature rule will integrate exactly
Returns
List of points and list of weights. The number of points arrays has shape (num points, gdim)

## ◆ make_quadrature() [2/2]

 std::pair< xt::xtensor< double, 2 >, std::vector< double > > basix::quadrature::make_quadrature ( const quadrature::type rule, cell::type celltype, int m )

Make a quadrature rule on a reference cell

Parameters
 [in] rule Type of quadrature rule (or use quadrature::Default) [in] celltype The cell type [in] m Maximum degree of polynomial that this quadrature rule will integrate exactly
Returns
List of points and list of weights. The number of points arrays has shape (num points, gdim)