scipy.linalg.logm

scipy.linalg.logm(A, disp=1)

Compute matrix logarithm.

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

Parameters:

A : array, shape(M,M)

Matrix whose logarithm to evaluate

disp : boolean

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

Returns:

logA : array, shape(M,M)

Matrix logarithm of A

(if disp == False) :

errest : float

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

Previous topic

scipy.linalg.expm3

Next topic

scipy.linalg.cosm

This Page

Quick search