22.08.2013 Views

vector - Department of Computer Science

vector - Department of Computer Science

vector - Department of Computer Science

SHOW MORE
SHOW LESS

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!