Library/ManagedCuda/CudaBlas/CudaBlasHandler.cs
/// <summary>
/// This function computes the dot product of vectors x and y.
/// <para/>Notice that the conjugate of the element of vector x should be used.
/// </summary>
/// <param name="x"></param>
/// <param name="incx"></param>
/// <param name="y"></param>
/// <param name="incy"></param>
This function computes the dot product of vectors x and y.
Notice that the conjugate of the element of vector x should be used.
This function computes the dot product of vectors x and y . Notice that the conjugate of the element of vector x should be used .
public cuDoubleComplex DotConj(CudaDeviceVariable<cuDoubleComplex> x, int incx, CudaDeviceVariable<cuDoubleComplex> y, int incy)
		{
			cuDoubleComplex result = new cuDoubleComplex();
			_status = CudaBlasNativeMethods.cublasZdotc_v2(_blasHandle, x.Size, x.DevicePointer, incx, y.DevicePointer, incy, ref result);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cublasZdotc_v2", _status));
			if (_status != CublasStatus.Success) throw new CudaBlasException(_status);
			return result;
		}
public cuDoubleComplex DotConj ( CudaDeviceVariable < cuDoubleComplex > x , int incx , CudaDeviceVariable < cuDoubleComplex > y , int incy ) { cuDoubleComplex result = new cuDoubleComplex ( ) ; _status = CudaBlasNativeMethods . cublasZdotc_v2 ( _blasHandle , x . Size , x . DevicePointer , incx , y . DevicePointer , incy , ref result ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , _status ) ) ; if ( _status != CublasStatus . Success ) throw new CudaBlasException ( _status ) ; return result ; }
This function computes the dot product of vectors x and y.
This function computes the dot product of vectors x and y .
x
CudaDeviceVariable<cuDoubleComplex>
None
incx
int
None
y
CudaDeviceVariable<cuDoubleComplex>
None
incy
int
None