Esempio n. 1
0
 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))
Esempio n. 2
0
 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))
Esempio n. 3
0
 def __abs__(self):
     return MIArray(ArrayMath.abs(self.array))
Esempio n. 4
0
 def __abs__(self):
     return MIArray(ArrayMath.abs(self.array))