Go backward to Vector Operations Go up to Top Go forward to Scalar Loop |
V1,V2 <-GATHER(A)
load all non-zero elements of A into V1 and their indices into V2
A <-SCATTER(V1,V2)
store elements of V1 into A at indices denoted by V2 and fill rest with zeros
V1 <-MASK(V2,V3)
store elements of V2 into V1 for which corresponding position in V3 is non-zero