Library/ManagedCuda/NPP/NPPsExtensionMethods.cs
/// <summary>
/// 16-bit signed short signal divide signal, scale, round, then clamp to saturated value.
/// </summary>
/// <param name="pSrc1">Source signal pointer.</param>
/// <param name="pSrc2">Source signal pointer, signal1 divisor elements to be divided into signal2 dividend elements.</param>
/// <param name="pDst">Destination signal pointer.</param>
/// <param name="nRndMode">various rounding modes.</param>
/// <param name="nScaleFactor">Integer Result Scaling.</param>
16-bit signed short signal divide signal, scale, round, then clamp to saturated value.
16 - bit signed short signal divide signal scale round then clamp to saturated value .
public static void Div_Round(this CudaDeviceVariable<short> pSrc1, CudaDeviceVariable<short> pSrc2, CudaDeviceVariable<short> pDst, NppRoundMode nRndMode, int nScaleFactor)
		{
			NppStatus status = NPPNativeMethods.NPPs.DivRoundSignal.nppsDiv_Round_16s_Sfs(pSrc1.DevicePointer, pSrc2.DevicePointer, pDst.DevicePointer, pSrc1.Size, nRndMode, nScaleFactor);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppsDiv_Round_16s_Sfs", status));
			NPPException.CheckNppStatus(status, pSrc1);
		}
public static void Div_Round ( this CudaDeviceVariable < short > pSrc1 , CudaDeviceVariable < short > pSrc2 , CudaDeviceVariable < short > pDst , NppRoundMode nRndMode , int nScaleFactor ) { NppStatus status = NPPNativeMethods . NPPs . DivRoundSignal . nppsDiv_Round_16s_Sfs ( pSrc1 . DevicePointer , pSrc2 . DevicePointer , pDst . DevicePointer , pSrc1 . Size , nRndMode , nScaleFactor ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , pSrc1 ) ; }
16-bit signed short signal divide signal, scale, round, then clamp to saturated value.
16 - bit signed short signal divide signal scale round then clamp to saturated value .
CudaDeviceVariable<short>
this
pSrc2
CudaDeviceVariable<short>
Source signal pointer, signal1 divisor elements to be divided into signal2 dividend elements.
Source signal pointer signal1 divisor elements to be divided into signal2 dividend elements .
pDst
CudaDeviceVariable<short>
Destination signal pointer.
Destination signal pointer .
nRndMode
NppRoundMode
various rounding modes.
various rounding modes .
nScaleFactor
int
Integer Result Scaling.
Integer Result Scaling .
pSrc1
Source signal pointer.
Source signal pointer .