Open pastewka opened 3 years ago
I think the reason it is not implemented is that you need the size of the global array.
Options:
pnp.sum() / np.prod(nb_grid_pts)
Of course another option is to compute the total nb of entries on the fly in pnp.mean (i.e. making two reductions)
i.e. pnp.mean(array) = pnp.sum(array) / pnp.sum(len(array))
This would allow simple parallelization of many of the scalar parameters implemented in SurfaceTopography