MatrixPotential¶
About the MatrixPotential
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.
MatrixPotential
[source]¶ This class represents a potential with . The potential is given as an analytic expression. Some calculations with the potential are supported. For example calculation of eigenvalues and eigenvectors and numerical evaluation on a grid .
-
calculate_eigenvalues
()[source]¶ Calculate the eigenvalue of the potential .
Raise: NotImplementedError
This is an abstract base class.
-
calculate_eigenvectors
()[source]¶ Calculate the eigenvectors of the potential .
Raise: NotImplementedError
This is an abstract base class.
-
calculate_exponential
(factor=1)[source]¶ Calculate the matrix exponential .
Parameters: factor – The prefactor in the exponential. Raise: NotImplementedError
This is an abstract base class.
-
evaluate_at
(grid, entry=None)[source]¶ Evaluate the potential elementwise on a grid .
Parameters: - grid – The grid containing the nodes we want to evaluate the potential at.
- entry – The indices of the component
we want to evaluate or
None
to evaluate all entries.
Raise: NotImplementedError
This is an abstract base class.
-
evaluate_eigenvalues_at
(grid, entry=None)[source]¶ Evaluate the eigenvalues elementwise on a grid .
Parameters: - grid – The grid containing the nodes we want to evaluate the eigenvalues at.
- entry – The index of the eigenvalue
we want to evaluate or
None
to evaluate all eigenvalues.
Raise: NotImplementedError
This is an abstract base class.
-
evaluate_eigenvectors_at
(grid, entry=None)[source]¶ Evaluate the eigenvectors elementwise on a grid .
Parameters: - grid – The grid containing the nodes we want to evaluate the eigenvectors at.
- entry – The index of the eigenvector
we want to evaluate or
None
to evaluate all eigenvectors.
Raise: NotImplementedError
This is an abstract base class.
-
evaluate_exponential_at
(grid)[source]¶ Evaluate the exponential of the potential matrix on a grid .
Parameters: grid – The grid containing the nodes we want to evaluate the exponential at. Raise: NotImplementedError
This is an abstract base class.
-