Library/ManagedCuda/NPP/NPPsExtensionMethods.cs
/// <summary>
/// 16-bit signed short integer dot product method, return value is 64-bit signed integer.
/// </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>
16-bit signed short integer dot product method, return value is 64-bit signed integer.
16 - bit signed short integer dot product method return value is 64 - bit signed integer .
public static void DotProd(this CudaDeviceVariable<short> pSrc1, CudaDeviceVariable<short> pSrc2, CudaDeviceVariable<long> pDp, CudaDeviceVariable<byte> pDeviceBuffer)
		{
			NppStatus status = NPPNativeMethods.NPPs.DotProduct.nppsDotProd_16s64s(pSrc1.DevicePointer, pSrc2.DevicePointer, pSrc1.Size, pDp.DevicePointer, pDeviceBuffer.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppsDotProd_16s64s", status));
			NPPException.CheckNppStatus(status, pSrc1);
		}
public static void DotProd ( this CudaDeviceVariable < short > pSrc1 , CudaDeviceVariable < short > pSrc2 , CudaDeviceVariable < long > pDp , CudaDeviceVariable < byte > pDeviceBuffer ) { NppStatus status = NPPNativeMethods . NPPs . DotProduct . nppsDotProd_16s64s ( pSrc1 . DevicePointer , pSrc2 . DevicePointer , pSrc1 . Size , pDp . DevicePointer , pDeviceBuffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , pSrc1 ) ; }
16-bit signed short integer dot product method, return value is 64-bit signed integer.
16 - bit signed short integer dot product method return value is 64 - bit signed integer .
CudaDeviceVariable<short>
this
pSrc2
CudaDeviceVariable<short>
Source signal pointer.
Source signal pointer .
pDp
CudaDeviceVariable<long>
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 .