I need to find the supremum norm (maximal element of vector) of a vector. I can implement is using norm function of linear algebra library of mpi4py.
x = np.linspace(0, 100, n)
mxnorm_x = norm(x, np.inf)
print "mxnorm-x", mxnorm_x
However, I need to find this supremum norm using MPI Reduce operation. Is it really possible to find this norm using comm.Reduce and the Op MAX or MAXLOC?