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