vector - Department of Computer Science
vector - Department of Computer Science
vector - Department of Computer Science
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Scatter example:<br />
Vector Scatter/Gather<br />
for (i=0; idouble 1.0<br />
LV vB,rB # Load indices in B <strong>vector</strong><br />
LVI vA,(rA+vB) # Gather initial A values<br />
. ADDVS vA,vA,F1 # Increase A values by F1=1.<br />
SVI vA,(rA+vB) # Scatter incremented values<br />
3/22-24/11 CSE502-S11, Lec 14+15-Vector 44