Hi.Arithmetic library for vector scalar multiplication for single-precision floating-point numbers. I think that the calculation result for cblas_sscal is strange.
When the following code is executed, it seems that the calculation is not performed from the 32nd as shown below. It seems to operate correctly when n is 63 or less.
If it was cblas_dscal, it could be calculated normally.
#include<numeric>
#include<vector>
int main(){
int n = 64;
std::vector<float> v(n);
std::iota(v.begin(), v.end(), 0);
cblas_sscal(n, 0.005f, v.data(), 1 );
for(auto& i:v)
std::cout << i << ' ';
std::cout <<'\n';
}
/* result
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0.045
0.05 0.055 0.06 0.065 0.07 0.075 0.08 0.085 0.09 0.095
0.1 0.105 0.11 0.115 0.12 0.125 0.13 0.135 0.14 0.145
0.15 0.155 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49
50 51 52 53 54 55 56 57 58 59
60 61 62 63
*/