![]() |
|
Proxy for the matrix power of some matrix (expression). More...
#include <MatrixPower.h>
Public Types | |
typedef Derived::PlainObject | PlainObject |
typedef std::complex< typename Derived::RealScalar > | ComplexScalar |
![]() | |
typedef internal::traits< MatrixComplexPowerReturnValue< Derived > >::ReturnType | ReturnType |
typedef internal::dense_xpr_base< ReturnByValue >::type | Base |
Public Member Functions | |
MatrixComplexPowerReturnValue (const Derived &A, const ComplexScalar &p) | |
Constructor. More... | |
template<typename ResultType > | |
void | evalTo (ResultType &result) const |
Compute the matrix power. More... | |
Index | rows () const |
Index | cols () const |
![]() | |
EIGEN_DEVICE_FUNC void | evalTo (Dest &dst) const |
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
const Unusable & | coeff (Index) const |
const Unusable & | coeff (Index, Index) const |
Unusable & | coeffRef (Index) |
Unusable & | coeffRef (Index, Index) |
Private Attributes | |
const Derived & | m_A |
const ComplexScalar | m_p |
Proxy for the matrix power of some matrix (expression).
Derived | type of the base, a matrix (expression). |
This class holds the arguments to the matrix power until it is assigned or evaluated for some other reason (so the argument should not be changed in the meantime). It is the return type of MatrixBase::pow() and related functions and most of the time this is the only way it is used.
typedef std::complex<typename Derived::RealScalar> Eigen::MatrixComplexPowerReturnValue< Derived >::ComplexScalar |
typedef Derived::PlainObject Eigen::MatrixComplexPowerReturnValue< Derived >::PlainObject |
|
inline |
Constructor.
[in] | A | Matrix (expression), the base of the matrix power. |
[in] | p | complex scalar, the exponent of the matrix power. |
|
inline |
References Eigen::MatrixComplexPowerReturnValue< Derived >::m_A.
Referenced by gdb.printers._MatrixEntryIterator::__next__(), gdb.printers.EigenMatrixPrinter::children(), gdb.printers.EigenSparseMatrixPrinter::children(), gdb.printers.EigenMatrixPrinter::to_string(), and gdb.printers.EigenSparseMatrixPrinter::to_string().
|
inline |
Compute the matrix power.
Because p
is complex, \( A^p \) is simply evaluated as \( \exp(p \log(A)) \).
[out] | result | \( A^p \) where A and p are as in the constructor. |
References Eigen::bfloat16_impl::exp(), Eigen::MatrixComplexPowerReturnValue< Derived >::m_A, and Eigen::MatrixComplexPowerReturnValue< Derived >::m_p.
|
inline |
References Eigen::MatrixComplexPowerReturnValue< Derived >::m_A.
Referenced by gdb.printers._MatrixEntryIterator::__next__(), gdb.printers.EigenMatrixPrinter::children(), gdb.printers.EigenSparseMatrixPrinter::children(), gdb.printers.EigenMatrixPrinter::to_string(), and gdb.printers.EigenSparseMatrixPrinter::to_string().
|
private |
|
private |
Referenced by Eigen::MatrixComplexPowerReturnValue< Derived >::evalTo().