vkirangoud / cusp-library

Automatically exported from code.google.com/p/cusp-library
Apache License 2.0
0 stars 0 forks source link

cusp::blas::scal can cause implicit casting of arguments #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
At the moment the functor for scal takes as template parameter the type of the 
scalar.
This means that when doing something like this:

  cusp::array1d<float,cusp::host_memory> y(1);
  y[0] = 2.3;
  cusp::blas::scal(y,2);
  cusp::print_matrix(y);

The elements of y are casted to int during the multiply resulting in unexpected 
results.

Original issue reported on code.google.com by filipe.c...@gmail.com on 28 Feb 2011 at 8:40

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 939b16bfb9.

Original comment by filipe.c...@gmail.com on 28 Feb 2011 at 8:50