execute(T* val, int pos [], T* srcDat, int* mskDat)The arguments are the addresses to which the result value and location should be written, and the base addresses of the local segments of the source and mask arrays. The latter should point to vectors of the locally held elements.
The size of the pos vector must be equal to the rank of the source array.