Computes the matrix exponential, e^A, of a given square matrix.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public static DoubleComplexMatrix Expm( DoubleComplexMatrix A ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function Expm ( _ A As DoubleComplexMatrix _ ) As DoubleComplexMatrix |
| Visual C++ |
|---|
public: static DoubleComplexMatrix^ Expm( DoubleComplexMatrix^ A ) |
Parameters
- A
- Type: CenterSpace.NMath.Core..::.DoubleComplexMatrix
A square matrix.
Return Value
A matrix F such thatF = exp(A)
Remarks
This method uses a scaling and squaring method based upon Pade
approximation. Note this method raises the constant e to a matrix
power, which is different than Exp( DoubleComplexMatrix A)
which exponentiates each element of a matrix independently.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.MatrixNotSquareException | Thrown if the given matrix is not square. |