Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
12 Views

SSE MATRIX MULTIPLICATION

How can i achieve the same result as the C++ codes below using SSE instructions:

#include

using namespace std;

int main() {
int C[4][4]={1,1,1,1,2,1,-1,-2,1,-1,-1,1,1,-2,2,-1};
int X[4][4] = {5,11,8,10,9,8,4,12,1,10,11,4,19,6,15,7};
int Y[4][4]; // coordinate-wise product of C and X
int n=4, m=4;

for (int j=0; jfor (int i=0; iY = C * X;
}
cout << endl;
for (int i=0;i for (int j=0;j << " ";
cout << endl;
}
system ("PAUSE");
return EXIT_SUCCESS;
}

0 Kudos
0 Replies