[SciPy-dev] logm

Nils Wagner nwagner at mecha.uni-stuttgart.de
Fri Oct 28 03:02:42 EDT 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