Go backward to Loop Distribution
Go up to Top
Go forward to Types of Vector Operations
Interchange loop 4-1 and loop 5-15-1 DO J = 1, N 4-1 DO I = 1, N 6-1 C(I,J) = 0 ENDDO ENDDOVector stride becomes one word!
Interchange loop 5-2 and loop 7-25-2 DO J = 1, N 7-2 DO K = 1, N 4-2 DO I = 1, N 8-2 C(I,J)=C(I,J)+A(I,K)*B(K,J) ENDDO ENDDO ENDDOType of vector operation is changed!