Library/ManagedCuda/NPP/NPPsExtensionMethods.cs
/// <summary>
/// 32-bit signed integer in place signal times constant and scale.
/// </summary>
/// <param name="pSrcDst">In-Place Signal Pointer.</param>
/// <param name="nValue">Constant value to be multiplied by each vector element</param>
/// <param name="nScaleFactor">Integer Result Scaling.</param>
32-bit signed integer in place signal times constant and scale.
32 - bit signed integer in place signal times constant and scale .
public static void MulC(this CudaDeviceVariable<int> pSrcDst, int nValue, int nScaleFactor)
		{
			NppStatus status = NPPNativeMethods.NPPs.MulC.nppsMulC_32s_ISfs(nValue, pSrcDst.DevicePointer, pSrcDst.Size, nScaleFactor);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppsMulC_32s_ISfs", status));
			NPPException.CheckNppStatus(status, pSrcDst);
		}
public static void MulC ( this CudaDeviceVariable < int > pSrcDst , int nValue , int nScaleFactor ) { NppStatus status = NPPNativeMethods . NPPs . MulC . nppsMulC_32s_ISfs ( nValue , pSrcDst . DevicePointer , pSrcDst . Size , nScaleFactor ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , pSrcDst ) ; }
32-bit signed integer in place signal times constant and scale.
32 - bit signed integer in place signal times constant and scale .
CudaDeviceVariable<int>
this
nValue
int
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 .
pSrcDst
In-Place Signal Pointer.
In - Place Signal Pointer .