Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Customer__Intel4
Beginner
92 Views

bug in cblas_sscal ( ) ?

Hi
I discovered that when usingcblas_sscal ( ) to scale an array to zero values, sometimes ( not every time) an entry of the array after scaling becomes nan. The command simply reads:cblas_sscal(L, 0.0, A, 1); where L is the length of the array A.
0 Kudos
3 Replies
TimP
Black Belt
92 Views

cblas_sscal() requires a float constant. If you have a correct prototype in scope (by the supplied include files), the compiler would take care of cast from the double value you supplied.
Chao_Y_Intel
Employee
92 Views

Hi,
If input the data type is no problem, it needs a test code that could show thi problem. Feel free to post here if you have.

Thanks,
Chao

Murat_G_Intel
Employee
92 Views

If your input array A contains NaNs, then scaling a NaN value with 0.0 will still give a NaN.
Reply