eradiate.quad
eradiate.quad
#
Utility components for quadrature rules.
- class eradiate.quad.Quad(type, nodes, weights)[source]#
A data class storing information about a quadrature rule. Nodes and weights are defined in the [-1, 1] interval. The reference interval can be changed using the
interval
argument of theeval_nodes()
andintegrate()
functions.Important
Node and weight computation is performed using Mitsuba’s quadrature rule functions. Therefore, an Eradiate mode must be selected for this class to work as intended.
- Parameters
- Fields
- classmethod gauss_legendre(n)[source]#
Initialize a
Quad
instance with Gauss-Legendre nodes and weights.
- classmethod gauss_lobatto(n)[source]#
Initialize a
Quad
instance with Gauss-Lobatto nodes and weights.