Question: 1 . Apply the complete Banerjee s test to the loop for ( i = 0 ; i < = 2 0 0 ; i

1. Apply the complete Banerjees test to the loop
for(i=0; i<=200; i++){
a[i+k-2]= b[i]; /* statement 1*/
c[i]= a[2*i+k+1]; /* statement 2*/
}
to check if it is vectorizable. If vectorizable, explain which vector operation should be performed first -- specified by statement 1 or statement 2, and describe the vector operations. (10 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!