Previous Optimisation of saxpy |
Parent Optimisation of saxpy |
Outline | Next The classical approach |
Single precision A X plus Y
Mathematicaly it is :In C++ code :
1 2 3 4 5 |
void saxpy(float* tabResult, float scal, const float * tabX, const float* tabY, long unsigned int nbElement){ for(long unsigned int i(0lu); i < nbElement; ++i){ tabResult[i] = scal*tabX[i] + tabY[i]; } } |
Previous Optimisation of saxpy |
Parent Optimisation of saxpy |
Outline | Next The classical approach |