Guest User

Untitled

a guest
Jun 18th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1.  
  2. float[] getVector(float**** polinom, int latura, int nrCoef, int nrPolinom)
  3. {
  4. int lungimeVec = nrCoef * latura * latura ;
  5. float getVec[lungimeVec] __attribute__((aligned(128));
  6. int contor = 0 ,j,k,l;
  7.  
  8. for(j = 0; j < nrCoef; j++){
  9. for(k = 0; k < latura; k++){
  10. for(l = 0; l < latura; l++){
  11. getVec[contor++] = polinom[nrPolinom][j][k][l];
  12. }
  13. }
  14. }
  15.  
  16. return getVec;
  17. }
  18. {
  19. int main()
  20.  
  21. float values1[100] __attribute__((aligned(128)));
  22.  
  23.  
  24. values1 = getVector(polinom, latura, vectorDeCoef[1], 1);
  25. }
Add Comment
Please, Sign In to add comment