Library/ManagedCuda/CudaBlas/CudaBlasHandler.cs
/// <summary>
/// This function computes the sum of the absolute values of the elements of vector x.
/// </summary>
/// <param name="x"></param>
/// <param name="incx"></param>
This function computes the sum of the absolute values of the elements of vector x.
This function computes the sum of the absolute values of the elements of vector x .
public double AbsoluteSum(CudaDeviceVariable<double> x, int incx)
		{
			double result = 0;
			_status = CudaBlasNativeMethods.cublasDasum_v2(_blasHandle, x.Size, x.DevicePointer, incx, ref result);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cublasDasum_v2", _status));
			if (_status != CublasStatus.Success) throw new CudaBlasException(_status);
			return result;
		}
public double AbsoluteSum ( CudaDeviceVariable < double > x , int incx ) { double result = 0 ; _status = CudaBlasNativeMethods . cublasDasum_v2 ( _blasHandle , x . Size , x . DevicePointer , incx , ref result ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , _status ) ) ; if ( _status != CublasStatus . Success ) throw new CudaBlasException ( _status ) ; return result ; }
This function computes the sum of the absolute values of the elements of vector x.
This function computes the sum of the absolute values of the elements of vector x .
x
CudaDeviceVariable<double>
None
incx
int
None