Library/ManagedCuda/NPP/NPPsExtensionMethods.cs
/// <summary>
/// 32-bit floating point signal times constant with output converted to 16-bit signed integer
/// with scaling and saturation of output result.
/// </summary>
/// <param name="pSrc">Source signal pointer.</param>
/// <param name="nValue">Constant value to be multiplied by each vector element</param>
/// <param name="pDst">Destination signal pointer.</param>
/// <param name="nScaleFactor">Integer Result Scaling.</param>
32-bit floating point signal times constant with output converted to 16-bit signed integer
with scaling and saturation of output result.
32 - bit floating point signal times constant with output converted to 16 - bit signed integer with scaling and saturation of output result .
public static void MulC(this CudaDeviceVariable<float> pSrc, CudaDeviceVariable<short> pDst, float nValue, int nScaleFactor)
		{
			NppStatus status = NPPNativeMethods.NPPs.MulC.nppsMulC_32f16s_Sfs(pSrc.DevicePointer, nValue, pDst.DevicePointer, pSrc.Size, nScaleFactor);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppsMulC_32f16s_Sfs", status));
			NPPException.CheckNppStatus(status, pSrc);
		}
public static void MulC ( this CudaDeviceVariable < float > pSrc , CudaDeviceVariable < short > pDst , float nValue , int nScaleFactor ) { NppStatus status = NPPNativeMethods . NPPs . MulC . nppsMulC_32f16s_Sfs ( pSrc . DevicePointer , nValue , pDst . DevicePointer , pSrc . Size , nScaleFactor ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , pSrc ) ; }
32-bit floating point signal times constant with output converted to 16-bit signed integer
with scaling and saturation of output result.
32 - bit floating point signal times constant with output converted to 16 - bit signed integer with scaling and saturation of output result .
CudaDeviceVariable<float>
this
<not_specific>
pDst
CudaDeviceVariable<short>
Destination signal pointer.
Destination signal pointer .
nValue
float
Constant value to be multiplied by each vector element
Constant value to be multiplied by each vector element
nScaleFactor
int
Integer Result Scaling.
Integer Result Scaling .
pSrc
<not_specific>
Source signal pointer.
Source signal pointer .