Evaluation of generic matrix functions

Go to: Back / Home Page

The function funm evaluates a generic matrix function $f(A)$ for some $f(z)$ analytic over the ball centered at zero and of radius equal to the norm of $A$.

The approach uses a contour integral on the boundary of such ball to evaluate the function.

Contents

Syntax

Example

As an example we evaluate the matrix exponential, and compare with the (much more efficient) implementation in expm.

A = cqt([ 2 1 1], [ 2 1 ]);
eA = funm(A, @(z) exp(z));
eA2 = expm(A);

res = norm(eA - eA2) / norm(eA2)
res =

   4.1735e-11