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¶
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 for a general function with .
Parameters: - row – The index of the component of .
- row – The index of the component of .
Returns: A complex valued matrix of shape .
-
perform_quadrature
(row, col)[source]¶ Evaluates by numerical steepest descent the integral for a polynomial function with .
Parameters: - row – The index of the component of .
- row – The index of the component of .
Returns: A single complex floating point number.
-
set_qr
(QR)¶ Set the
QuadratureRule
subclass instance used for quadrature.Parameters: QR – The new QuadratureRule
instance.
-