QuadratureRule

About the QuadratureRule class

The WaveBlocks Project

@author: R. Bourquin @copyright: Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2016 R. Bourquin @license: Modified BSD License

Inheritance diagram

Inheritance diagram of QuadratureRule

Class documentation

class WaveBlocksND.QuadratureRule[source]

This class is an abstract interface to quadrature rules in general.

get_description()[source]

Return a description of this quadrature rule object. A description is a dict containing all key-value pairs necessary to reconstruct the current instance. A description never contains any data.

get_dimension()[source]
Returns:The space dimension D of the quadrature rule.
get_nodes()[source]
Returns:A two-dimensional ndarray containing the quadrature nodes \gamma_i. The array must have a shape of (D, |\Gamma|).
get_number_nodes()[source]
Returns:The number of quadrature nodes denoted by |\Gamma| that are part of this quadrature rule \Gamma = (\gamma, \omega).
get_weights()[source]
Returns:A two-dimensional ndarray containing the quadrature weights \omega_i. The array must have a shape of (1, |\Gamma|).