Library/ManagedCuda/NPP/NPPsExtensionMethods.cs
/// <summary>
/// 32-bit float dot product method, return value is 32-bit float.
/// </summary>
/// <param name="pSrc1">Source signal pointer.</param>
/// <param name="pSrc2">Source signal pointer.</param>
/// <param name="pDp">Pointer to the dot product result.</param>
/// <param name="pDeviceBuffer">Pointer to the required device memory allocation. </param>
32-bit float dot product method, return value is 32-bit float.
32 - bit float dot product method return value is 32 - bit float .
public static void DotProd(this CudaDeviceVariable<float> pSrc1, CudaDeviceVariable<float> pSrc2, CudaDeviceVariable<float> pDp, CudaDeviceVariable<byte> pDeviceBuffer)
		{
			NppStatus status = NPPNativeMethods.NPPs.DotProduct.nppsDotProd_32f(pSrc1.DevicePointer, pSrc2.DevicePointer, pSrc1.Size, pDp.DevicePointer, pDeviceBuffer.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppsDotProd_32f", status));
			NPPException.CheckNppStatus(status, pSrc1);
		}
public static void DotProd ( this CudaDeviceVariable < float > pSrc1 , CudaDeviceVariable < float > pSrc2 , CudaDeviceVariable < float > pDp , CudaDeviceVariable < byte > pDeviceBuffer ) { NppStatus status = NPPNativeMethods . NPPs . DotProduct . nppsDotProd_32f ( pSrc1 . DevicePointer , pSrc2 . DevicePointer , pSrc1 . Size , pDp . DevicePointer , pDeviceBuffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , pSrc1 ) ; }
32-bit float dot product method, return value is 32-bit float.
32 - bit float dot product method return value is 32 - bit float .
CudaDeviceVariable<float>
this
pSrc2
CudaDeviceVariable<float>
Source signal pointer.
Source signal pointer .
pDp
CudaDeviceVariable<float>
Pointer to the dot product result.
Pointer to the dot product result .
pDeviceBuffer
CudaDeviceVariable<byte>
Pointer to the required device memory allocation.
Pointer to the required device memory allocation .
pSrc1
Source signal pointer.
Source signal pointer .