@constructor
def max(x, axis=None, keepdims=False):
 try:
  out = max_and_argmax(x, axis)[0]
 except Exception:
  out = CAReduce(scal.maximum, axis)(x)
 if keepdims:
  out = makeKeepDims(x, out, axis)
 return out

@ constructor def max ( x , axis = None , keepdims = False ) : try : out = max_and_argmax ( x , axis ) [ 0 ] except Exception : out = CAReduce ( scal . maximum , axis ) ( x ) if keepdims : out = makeKeepDims ( x , out , axis ) return out
returns maximum elements obtained by iterating over given axis .