[Numpy-discussion] numpy.matlib.abs

Keith Goodman kwgoodman at gmail.com
Sun Feb 4 20:06:34 EST 2007


There's a numpy.abs but no numpy.matlib.abs.

>> import numpy as N
>> import numpy.matlib as M
>>
>> N.abs?
Type:           ufunc
Base Class:     <type 'numpy.ufunc'>
String Form:    <ufunc 'absolute'>
Namespace:      Interactive
Docstring:
    y = absolute(x) takes |x| elementwise.

>> M.abs?
Object `M.abs` not found.



More information about the NumPy-Discussion mailing list