Library/ManagedCuda/CudaBlas/CudaBlasHandler.cs
/// <summary>
/// This function multiplies the vector x by the scalar and adds it to the vector y overwriting
/// the latest vector with the result.
/// </summary>
/// <param name="alpha"></param>
/// <param name="x"></param>
/// <param name="incx"></param>
/// <param name="y"></param>
/// <param name="incy"></param>
This function multiplies the vector x by the scalar and adds it to the vector y overwriting
the latest vector with the result.
This function multiplies the vector x by the scalar and adds it to the vector y overwriting the latest vector with the result .
public void Axpy(CudaDeviceVariable<float> alpha, CudaDeviceVariable<float> x, int incx, CudaDeviceVariable<float> y, int incy)
		{
			_status = CudaBlasNativeMethods.cublasSaxpy_v2(_blasHandle, x.Size, alpha.DevicePointer, x.DevicePointer, incx, y.DevicePointer, incy);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cublasSaxpy_v2", _status));
			if (_status != CublasStatus.Success) throw new CudaBlasException(_status);
		}
public void Axpy ( CudaDeviceVariable < float > alpha , CudaDeviceVariable < float > x , int incx , CudaDeviceVariable < float > y , int incy ) { _status = CudaBlasNativeMethods . cublasSaxpy_v2 ( _blasHandle , x . Size , alpha . DevicePointer , x . DevicePointer , incx , y . DevicePointer , incy ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , _status ) ) ; if ( _status != CublasStatus . Success ) throw new CudaBlasException ( _status ) ; }
This function multiplies the vector x by the scalar and adds it to the vector y overwriting
the latest vector with the result.
This function multiplies the vector x by the scalar and adds it to the vector y overwriting the latest vector with the result .
alpha
CudaDeviceVariable<float>
None
x
CudaDeviceVariable<float>
None
incx
int
None
y
CudaDeviceVariable<float>
None
incy
int
None