Library/ManagedCuda/NPP/NPPsExtensionMethods.cs
/// <summary>
/// 32-bit float signal to 16-bit signed short.
/// </summary>
32-bit float signal to 16-bit signed short.
32 - bit float signal to 16 - bit signed short .
public static void Convert(this CudaDeviceVariable<float> pSrc, CudaDeviceVariable<short> pDst, NppRoundMode eRoundMode, int nScaleFactor)
		{
			NppStatus status = NPPNativeMethods.NPPs.Convert.nppsConvert_32f16s_Sfs(pSrc.DevicePointer, pDst.DevicePointer, pSrc.Size, eRoundMode, nScaleFactor);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppsConvert_32f16s_Sfs", status));
			NPPException.CheckNppStatus(status, pSrc);
		}
public static void Convert ( this CudaDeviceVariable < float > pSrc , CudaDeviceVariable < short > pDst , NppRoundMode eRoundMode , int nScaleFactor ) { NppStatus status = NPPNativeMethods . NPPs . Convert . nppsConvert_32f16s_Sfs ( pSrc . DevicePointer , pDst . DevicePointer , pSrc . Size , eRoundMode , nScaleFactor ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , pSrc ) ; }
32-bit float signal to 16-bit signed short.
32 - bit float signal to 16 - bit signed short .
CudaDeviceVariable<float>
this
pDst
CudaDeviceVariable<short>
eRoundMode
NppRoundMode
nScaleFactor
int