Library/ManagedCuda/NPP/NPPsExtensionMethods.cs
/// <summary>
/// 32-bit floating point signal add product of signal times constant to destination signal.
/// </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>
32-bit floating point signal add product of signal times constant to destination signal.
32 - bit floating point signal add product of signal times constant to destination signal .
public static void AddProductC(this CudaDeviceVariable<float> pSrc, CudaDeviceVariable<float> pDst, float nValue)
		{
			NppStatus status = NPPNativeMethods.NPPs.AddProductC.nppsAddProductC_32f(pSrc.DevicePointer, nValue, pDst.DevicePointer, pSrc.Size);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppsAddProductC_32f", status));
			NPPException.CheckNppStatus(status, pSrc);
		}
public static void AddProductC ( this CudaDeviceVariable < float > pSrc , CudaDeviceVariable < float > pDst , float nValue ) { NppStatus status = NPPNativeMethods . NPPs . AddProductC . nppsAddProductC_32f ( pSrc . DevicePointer , nValue , pDst . DevicePointer , pSrc . Size ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , pSrc ) ; }
32-bit floating point signal add product of signal times constant to destination signal.
32 - bit floating point signal add product of signal times constant to destination signal .
CudaDeviceVariable<float>
this
pDst
CudaDeviceVariable<float>
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
pSrc
Source signal pointer.
Source signal pointer .