high-level axpy (y = alpha * x + y) wrapper for CuPtr
cublas tests
1 auto a = CuArray!float([3, 4, 5]); 2 auto b = CuArray!float([1, 2, 3]); 3 axpy(a, b, 2.0); 4 assert(a.toHost() == [3, 4, 5]); 5 assert(b.toHost() == [7, 10, 13]);
See Implementation
high-level axpy (y = alpha * x + y) wrapper for CuPtr