archimedes.quadrature.QuadratureReferenceDataΒΆ
- class archimedes.quadrature.QuadratureReferenceData(
- nodes: ndarray,
- weights: ndarray,
- measure: Measure,
- breakpoints: ndarray | None = None,
- elements: ndarray | None = None,
Reference-domain payload of a
QuadratureRulenodes/weightsValidated once at construction; a ruleβs
map_toreuses the same instance unchanged across every mapping, so this validation never re-runs just because the mapping changes. Never itself symbolic, so this stays a plain dataclass rather than astruct().- Parameters:
nodes (array_like) β Quadrature nodes \(x_i\), shape
(n,), onmeasure.support.weights (array_like) β Quadrature weights \(w_i\), shape
(n,).measure (Measure) β Weight function and reference domain the rule is defined on.
breakpoints (array_like, optional) β For a composite rule (see
composite_quad()), the element boundaries it was tiled across, onmeasure.support;Nonefor a plain rule.elements (array_like, optional) β For a composite rule, the index of the element each node came from, shape
(n,). Required wheneverbreakpointsis given and forbidden otherwise β a rule that claims element structure but cannot say which element a node belongs to is exactly the state that makes a discontinuous basis mis-integrate. SeeQuadrature.elements.
- Raises:
ValueError β If
nodesandweightsdo not have the same shape, or ifbreakpointsandelementsare not both given or both omitted.
Attributes
breakpointselementsnodesweightsmeasure