DirectQuadrature

About the DirectQuadrature 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 DirectQuadrature

Class documentation

class WaveBlocksND.DirectQuadrature[source]
get_description()[source]

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

get_qr()

Return the QuadratureRule subclass instance used for quadrature.

Returns:The current instance of the quadrature rule.
perform_build_matrix(row, col)[source]

Computes by standard quadrature the matrix elements \langle\Phi_i | f |\Phi^\prime_j\rangle for a general function f(x) with x \in \mathbb{R}^D.

Parameters:
  • row – The index i of the component \Phi_i of \Psi.
  • row – The index j of the component \Phi^\prime_j of \Psi^\prime.
Returns:

A complex valued matrix of shape |\mathfrak{K}_i| \times |\mathfrak{K}^\prime_j|.

perform_quadrature(row, col)[source]

Evaluates by numerical steepest descent the integral \langle \Phi_i | f | \Phi^\prime_j \rangle for a polynomial function f(x) with x \in \mathbb{R}^D.

Parameters:
  • row – The index i of the component \Phi_i of \Psi.
  • row – The index j of the component \Phi^\prime_j of \Psi^\prime.
Returns:

A single complex floating point number.

set_qr(QR)

Set the QuadratureRule subclass instance used for quadrature.

Parameters:QR – The new QuadratureRule instance.