24#ifndef VULPES_QUADRATURE_QRULE_HPP_
25#define VULPES_QUADRATURE_QRULE_HPP_
47template <
typename T, std::
size_t Dim>
68template <
typename T, std::
size_t Dim>
71 std::vector<QuadraturePoint<T, Dim>>
nodes;
101template <
typename V,
typename U, std::
size_t Dim>
105 rule_dst.
nodes.reserve(rule_src.
nodes.size());
106 for (
const auto& node : rule_src.
nodes) {
107 rule_dst.
nodes.emplace_back();
109 for (std::size_t d = 0; d < Dim; ++d) {
QuadratureRule< V, Dim > castRule(const QuadratureRule< U, Dim > &rule_src)
Casts a quadrature rule from one data type to another.
Definition qrule.hpp:102
QuadratureRule< T, 1 > QuadratureRule1D
Alias for a 1-dimensional quadrature rule.
Definition qrule.hpp:83
V to(const U &src)
Converts a value of one pseudo-arithmetic type to another.
Definition vmath.hpp:321
Definition cell_manager.hpp:38
Represents a single quadrature point in a specified dimension.
Definition qrule.hpp:48
std::array< T, Dim > point
Coordinates of the quadrature point in Dim dimensions.
Definition qrule.hpp:50
T weight
Weight of the quadrature point for integration.
Definition qrule.hpp:52
Represents a quadrature rule consisting of a set of points and associated weights.
Definition qrule.hpp:69
std::size_t degree
Definition qrule.hpp:73
std::vector< QuadraturePoint< float_t, Dim > > nodes
Definition qrule.hpp:71