SciPy

scipy.linalg.logm

scipy.linalg.logm(A, disp=True)[source]

Compute matrix logarithm.

The matrix logarithm is the inverse of expm: expm(logm(A)) == A

Parameters:

A : (N, N) array_like

Matrix whose logarithm to evaluate

disp : bool, optional

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

Returns:

logm : (N, N) ndarray

Matrix logarithm of A

errest : float

(if disp == False)

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

Previous topic

scipy.linalg.expm

Next topic

scipy.linalg.cosm