[SciPy-dev] logm

Nils Wagner nwagner at mecha.uni-stuttgart.de
Fri Oct 28 02:02:42 CDT 2005


def logm(A,disp=1):
    """Matrix logarithm, inverse of expm."""
    # Compute using general funm but then use better error estimator and
    #   make one step in improving estimate using a rotation matrix.
    A = mat(asarray(A))


All other matrix functions use A = asarray(A) instead of mat(...) .

Nils




More information about the Scipy-dev mailing list