Library/ManagedCuda/NPP/NPPsExtensionMethods.cs
/// <summary>
/// 16-bit unsigned short in place signal divide signal, with scaling,
/// then clamp to saturated value.
/// </summary>
/// <param name="pSrc">Source signal pointer.</param>
/// <param name="pSrcDst">In-Place Signal Pointer. signal1 divisor elements to be divided into signal2 dividend elements</param>
/// <param name="nScaleFactor">Integer Result Scaling.</param>
16-bit unsigned short in place signal divide signal, with scaling,
then clamp to saturated value.
16 - bit unsigned short in place signal divide signal with scaling then clamp to saturated value .
public static void Div(this CudaDeviceVariable<ushort> pSrcDst, CudaDeviceVariable<ushort> pSrc, int nScaleFactor)
		{
			NppStatus status = NPPNativeMethods.NPPs.DivSignal.nppsDiv_16u_ISfs(pSrc.DevicePointer, pSrcDst.DevicePointer, pSrcDst.Size, nScaleFactor);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppsDiv_16u_ISfs", status));
			NPPException.CheckNppStatus(status, pSrcDst);
		}
public static void Div ( this CudaDeviceVariable < ushort > pSrcDst , CudaDeviceVariable < ushort > pSrc , int nScaleFactor ) { NppStatus status = NPPNativeMethods . NPPs . DivSignal . nppsDiv_16u_ISfs ( pSrc . DevicePointer , pSrcDst . DevicePointer , pSrcDst . Size , nScaleFactor ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , pSrcDst ) ; }
16-bit unsigned short in place signal divide signal, with scaling,
then clamp to saturated value.
16 - bit unsigned short in place signal divide signal with scaling then clamp to saturated value .
CudaDeviceVariable<ushort>
this
pSrc
CudaDeviceVariable<ushort>
Source signal pointer.
Source signal pointer .
nScaleFactor
int
Integer Result Scaling.
Integer Result Scaling .
pSrcDst
In-Place Signal Pointer. signal1 divisor elements to be divided into signal2 dividend elements
In - Place Signal Pointer . signal1 divisor elements to be divided into signal2 dividend elements