A masked maximum location schedule is a communication schedule for finding the location of the largest element of a distributed array, under the control of a mask array. A masked maximum location schedule is described by a collective object with local components of class MaxlocMsk. The public interface of the MaxlocMsk class is
class DAD ; template<class T> class MaxlocMsk { public : Maxloc(const DAD* src, const DAD* msk) ; void execute(T* val, int pos [], T* srcDat, int* mskDat) ; private : ... } ;