def abs(self): ''' Calculate the absolute value element-wise. :returns: An array containing the absolute value of each element in x. For complex input, a + ib, the absolute value is \sqrt{ a^2 + b^2 }. ''' return MIArray(ArrayMath.abs(self.array))
def __abs__(self): return MIArray(ArrayMath.abs(self.array))