3 template <
typename T,
unsigned NumNodes1D,
typename ElementType>
7 template <
typename T,
unsigned NumNodes1D,
typename ElementType>
12 template <
typename T,
unsigned NumNodes1D,
typename ElementType>
17 template <
typename T,
unsigned NumNodes1D,
typename ElementType>
25 for (
unsigned i = 0; i < std::remove_reference_t<
decltype(*this)>
::numElementNodes; ++i) {
26 tensor_prod_w[i] = 1.0;
27 for (
unsigned d = 0; d < ElementType::dim; ++d) {
28 tensor_prod_w[i] *= w[nd_index[d]];
34 for (
unsigned d = 0; d < ElementType::dim; ++d) {
35 if (++nd_index[d] < NumNodes1D)
44 template <
typename T,
unsigned NumNodes1D,
typename ElementType>
53 for (
unsigned i = 0; i < std::remove_reference_t<
decltype(*this)>
::numElementNodes; ++i) {
54 for (
unsigned d = 0; d < ElementType::dim; ++d) {
55 tensor_prod_q[i][d] = q[nd_index[d]];
61 for (
unsigned d = 0; d < ElementType::dim; ++d) {
62 if (++nd_index[d] < NumNodes1D)
71 template <
typename T,
unsigned NumNodes1D,
typename ElementType>
73 const T& a,
const T& b)
const {
80 template <
typename T,
unsigned NumNodes1D,
typename ElementType>
const ElementType & ref_element_m
Vector< T, NumNodes1D > integration_nodes_m
Vector< T, NumNodes1D > weights_m
static constexpr unsigned numElementNodes
Vector< T, NumNodes1D > getWeights1D(const T &a, const T &b) const
Get the quadrature weights for one dimension. (With respect to the given domain [a,...
Vector< Vector< T, dim >, numElementNodes > getIntegrationNodesForRefElement() const
Get the integration (quadrature) nodes for the reference element.
size_t getDegree() const
Returns the degree of exactness of the quadrature rule.
Vector< T, NumNodes1D > getIntegrationNodes1D(const T &a, const T &b) const
Get the quadrature nodes for one dimension. (With respect to the given domain [a, b]).
size_t getOrder() const
Returns the order of the quadrature rule. (order = degree + 1).
Quadrature(const ElementType &ref_element)
Construct a new Quadrature object.
Vector< T, numElementNodes > getWeightsForRefElement() const
Get the quadrature weights for the reference element.