WPILibC++ 2023.4.3
|
Class for computing matrix powers. More...
Public Member Functions | |
MatrixPowerAtomic (const MatrixType &T, RealScalar p) | |
Constructor. More... | |
void | compute (ResultType &res) const |
Compute the matrix power. More... | |
Class for computing matrix powers.
MatrixType | type of the base, expected to be an instantiation of the Matrix class template. |
This class is capable of computing triangular real/complex matrices raised to a power in the interval \( (-1, 1) \).
Eigen::MatrixPowerAtomic< MatrixType >::MatrixPowerAtomic | ( | const MatrixType & | T, |
RealScalar | p | ||
) |
Constructor.
[in] | T | the base of the matrix power. |
[in] | p | the exponent of the matrix power, should be in \( (-1, 1) \). |
The class stores a reference to T, so it should not be changed (or destroyed) before evaluation. Only the upper triangular part of T is read.
void Eigen::MatrixPowerAtomic< MatrixType >::compute | ( | ResultType & | res | ) | const |
Compute the matrix power.
[out] | res | \( A^p \) where A and p are specified in the constructor. |