def sum(self, fill_value=None): ''' Get summarize value. :param fill_value: (*float*) Fill value. :returns: Summarize value. ''' if fill_value == None: return ArrayMath.sum(self.array) else: return ArrayMath.sum(self.array, fill_value)
def sum(self, axis=None): ''' Sum of array elements over a given axis. :param axis: (*int*) Axis along which the standard deviation is computed. The default is to compute the standard deviation of the flattened array. returns: (*array_like*) Sum result ''' if axis is None: return ArrayMath.sum(self.array) else: r = ArrayMath.sum(self.array, axis) return MIArray(r)
def sum(self, fill_value=None): if fill_value == None: return ArrayMath.sum(self.array) else: return ArrayMath.sum(self.array, fill_value)