Partial specialization of MatrixFunction for real matrices. More...
Public Member Functions | |
template<typename ResultType > | |
void | compute (ResultType &result) |
Compute the matrix function. | |
MatrixFunction (const MatrixType &A, StemFunction f) | |
Constructor. |
Partial specialization of MatrixFunction for real matrices.
MatrixFunction | ( | const MatrixType & | A, |
StemFunction | f | ||
) | [inline] |
Constructor.
[in] | A | argument of matrix function, should be a square matrix. |
[in] | f | an entire function; f(x,n) should compute the n-th derivative of f at x. |
void compute | ( | ResultType & | result | ) | [inline] |
Compute the matrix function.
[out] | result | the function f applied to A , as specified in the constructor. |
This function converts the real matrix A
to a complex matrix, uses MatrixFunction<MatrixType,1> and then converts the result back to a real matrix.