Back to LAPACK/BLAS
la.matrixFunctions.funm
Compute a general matrix function f(A).
Syntax
la.matrixFunctions.funm(A, f)
Description
Compute a general matrix function f(A). Computes f(A) where f is a scalar function, using eigendecomposition. For a matrix A = V * D * V^(-1) where D is diagonal, f(A) = V * f(D) * V^(-1) where f(D) applies f to each diagonal element.
Parameters
| Name | Description |
|---|---|
| A | - Input square matrix (n × n) |
| f | - Scalar function to apply |
Returns
FunmResult