scipy.linalg.funm

scipy.linalg.funm(A, func, disp=1)

Evaluate a matrix function specified by a callable.

Returns the value of matrix-valued function f at A. The function f is an extension of the scalar-valued function func to matrices.

Parameters:

A : array, shape(M,M)

Matrix at which to evaluate the function

func : callable

Callable object that evaluates a scalar function f. Must be vectorized (eg. using vectorize).

disp : boolean

Print warning if error in the result is estimated large instead of returning estimated error. (Default: True)

Returns:

fA : array, shape(M,M)

Value of the matrix function specified by func evaluated at A

(if disp == False) :

errest : float

1-norm of the estimated error, ||err||_1 / ||A||_1

Previous topic

scipy.linalg.sqrtm

Next topic

scipy.linalg.cg

This Page

Quick search