The WaveBlocks Project
@author: R. Bourquin @copyright: Copyright (C) 2010, 2011, 2012 R. Bourquin @license: Modified BSD License
This class represents a potential . The potential is given as an analytic expression. Some calculations with the potential are supported. For example calculation of eigenvalues and exponentials and numerical evaluation. Further, there are methods for splitting the potential into a Taylor expansion and for basis transformations between canonical and eigenbasis.
Calculate the eigenvalues of the potential .
Raises NotImplementedError: | |
---|---|
This is an abstract base class. |
Calculate the eigenvectors of the potential .
Raises NotImplementedError: | |
---|---|
This is an abstract base class. |
Calculate the matrix exponential .
Parameters: | factor – A prefactor in the exponential. |
---|---|
Raises NotImplementedError: | |
This is an abstract base class. |
Calculate the hessian matrix for each component of the potential. For potentials which depend only one variable , this equals the second derivative.
Raises NotImplementedError: | |
---|---|
This is an abstract base class. |
Calculate the jacobian matrix for each component of the potential. For potentials which depend only one variable , this equals the first derivative.
Raises NotImplementedError: | |
---|---|
This is an abstract base class. |
Calculate the local quadratic approximation matrix of the potential’s eigenvalues in . This function is used for the homogeneous case and takes into account the leading component .
Parameters: | diagonal_component – Specifies the index of the eigenvalue that gets expanded into a Taylor series . |
---|---|
Raises NotImplementedError: | |
This is an abstract base class. |
Calculate the non-quadratic remainder matrix of the quadratic approximation matrix of the potential’s eigenvalue matrix . This function is used for the homogeneous case and takes into account the leading component .
Parameters: | diagonal_component – Specifies the index of the leading component . |
---|---|
Raises NotImplementedError: | |
This is an abstract base class. |
Evaluate the potential matrix elementwise at some given grid nodes .
Parameters: |
|
---|---|
Raises NotImplementedError: | |
This is an abstract base class. |
Evaluate the eigenvalues at some grid nodes .
Parameters: |
|
---|---|
Raises NotImplementedError: | |
This is an abstract base class. |
Evaluate the eigenvectors at some grid nodes .
Parameters: | nodes – The grid nodes we want to evaluate the eigenvectors at. |
---|---|
Raises NotImplementedError: | |
This is an abstract base class. |
Evaluate the exponential of the potential matrix at some grid nodes .
Parameters: | nodes – The grid nodes we want to evaluate the exponential at. |
---|---|
Raises NotImplementedError: | |
This is an abstract base class. |
Evaluate the hessian at some grid nodes for each component of the potential.
Parameters: |
|
---|---|
Raises NotImplementedError: | |
This is an abstract base class. |
Evaluate the jacobian at some grid nodes for each component of the potential.
Parameters: |
|
---|---|
Raises NotImplementedError: | |
This is an abstract base class. |
Numerically evaluate the local quadratic approximation matrix of the potential’s eigenvalues in at the given grid nodes . This function is used for the homogeneous case and takes into account the leading component .
Parameters: | nodes – The grid nodes we want to evaluate the quadratic approximation at. |
---|---|
Raises NotImplementedError: | |
This is an abstract base class. |
Numerically evaluate the non-quadratic remainder matrix of the quadratic approximation matrix of the potential’s eigenvalues in at the given nodes . This function is used for the homogeneous and the inhomogeneous case and just evaluates the remainder matrix .
Parameters: |
|
---|---|
Raises NotImplementedError: | |
This is an abstract base class. |
Returns: | The number of components the potential supports. |
---|---|
Raises NotImplementedError: | |
This is an abstract base class. |
Project a given vector from the potential’s eigenbasis to the canonical basis.
Parameters: |
|
---|---|
Raises NotImplementedError: | |
This is an abstract base class. |
Project a given vector from the canonical basis to the eigenbasis of the potential.
Parameters: |
|
---|---|
Raises NotImplementedError: | |
This is an abstract base class. |