def max(self, axis=None): ''' Get maximum value along an axis. :param axis: (*int*) Axis along which the maximum is computed. The default is to compute the maximum of the flattened array. :returns: Maximum values. ''' if axis is None: r = ArrayMath.max(self.array) return r else: r = ArrayMath.max(self.array, axis) return MIArray(r)