qimpy.mpi.globalreduce

Reduction of MPI-distributed tensors to scalars. The functions of this module correctly handle zero-sized pieces of distributed tensors on certain processes, whic is a frequently encountered and cumbersome corner case in such global reductions.

Functions

sum

Global sum of tensor v distributed over comm.

prod

Global product of tensor v distributed over comm.

min

Global minimum of tensor v distributed over comm.

max

Global maximum of tensor v distributed over comm.

all

Global minimum of tensor v distributed over comm.

any

Global maximum of tensor v distributed over comm.