Library/ManagedCuda/CudaBlas/CudaBlasHandler.cs
/// <summary>
/// This function computes the dot product of vectors x and y.
/// </summary>
/// <param name="x"></param>
/// <param name="incx"></param>
/// <param name="y"></param>
/// <param name="incy"></param>
/// <param name="result"></param>
This function computes the dot product of vectors x and y.
This function computes the dot product of vectors x and y .
public void Dot(CudaDeviceVariable<cuFloatComplex> x, int incx, CudaDeviceVariable<cuFloatComplex> y, int incy, CudaDeviceVariable<cuFloatComplex> result)
		{
			_status = CudaBlasNativeMethods.cublasCdotu_v2(_blasHandle, x.Size, x.DevicePointer, incx, y.DevicePointer, incy, result.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cublasCdotu_v2", _status));
			if (_status != CublasStatus.Success) throw new CudaBlasException(_status);
		}
public void Dot ( CudaDeviceVariable < cuFloatComplex > x , int incx , CudaDeviceVariable < cuFloatComplex > y , int incy , CudaDeviceVariable < cuFloatComplex > result ) { _status = CudaBlasNativeMethods . cublasCdotu_v2 ( _blasHandle , x . Size , x . DevicePointer , incx , y . DevicePointer , incy , result . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , _status ) ) ; if ( _status != CublasStatus . Success ) throw new CudaBlasException ( _status ) ; }
This function computes the dot product of vectors x and y.
This function computes the dot product of vectors x and y .
x
CudaDeviceVariable<cuFloatComplex>
None
incx
int
None
y
CudaDeviceVariable<cuFloatComplex>
None
incy
int
None
result
CudaDeviceVariable<cuFloatComplex>
None