Library/ManagedCuda/NPP/NPPsExtensionMethods.cs
/// <summary>
/// 16-bit signed short signal subtract 16-bit signed short signal,
/// then clamp and convert to 32-bit floating point saturated value.
/// </summary>
/// <param name="pSrc1">Source signal pointer.</param>
/// <param name="pSrc2">Source signal pointer. signal1 elements to be subtracted from signal2 elements</param>
/// <param name="pDst">Destination signal pointer.</param>
16-bit signed short signal subtract 16-bit signed short signal,
then clamp and convert to 32-bit floating point saturated value.
16 - bit signed short signal subtract 16 - bit signed short signal then clamp and convert to 32 - bit floating point saturated value .
public static void Sub(this CudaDeviceVariable<short> pSrc1, CudaDeviceVariable<short> pSrc2, CudaDeviceVariable<float> pDst)
		{
			NppStatus status = NPPNativeMethods.NPPs.SubSignal.nppsSub_16s32f(pSrc1.DevicePointer, pSrc2.DevicePointer, pDst.DevicePointer, pSrc1.Size);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppsSub_16s32f", status));
			NPPException.CheckNppStatus(status, pSrc1);
		}
public static void Sub ( this CudaDeviceVariable < short > pSrc1 , CudaDeviceVariable < short > pSrc2 , CudaDeviceVariable < float > pDst ) { NppStatus status = NPPNativeMethods . NPPs . SubSignal . nppsSub_16s32f ( pSrc1 . DevicePointer , pSrc2 . DevicePointer , pDst . DevicePointer , pSrc1 . Size ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , pSrc1 ) ; }
16-bit signed short signal subtract 16-bit signed short signal,
then clamp and convert to 32-bit floating point saturated value.
16 - bit signed short signal subtract 16 - bit signed short signal then clamp and convert to 32 - bit floating point saturated value .
CudaDeviceVariable<short>
this
pSrc2
CudaDeviceVariable<short>
Source signal pointer. signal1 elements to be subtracted from signal2 elements
Source signal pointer . signal1 elements to be subtracted from signal2 elements
pDst
CudaDeviceVariable<float>
Destination signal pointer.
Destination signal pointer .
pSrc1
Source signal pointer.
Source signal pointer .