Class NPPNativeMethods.NPPs.AddProductSignal
Adds sample by sample product of two signals to the destination signal.
Inheritance
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public static class AddProductSignal
Methods
nppsAddProduct_16s_Sfs(CUdeviceptr, CUdeviceptr, CUdeviceptr, Int32, Int32)
16-bit signed short signal add product of source signal1 times source signal2 to destination signal, with scaling, then clamp to saturated value.
Declaration
public static NppStatus nppsAddProduct_16s_Sfs(CUdeviceptr pSrc1, CUdeviceptr pSrc2, CUdeviceptr pDst, int nLength, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | Source signal pointer. |
CUdeviceptr | pSrc2 | Source signal pointer. |
CUdeviceptr | pDst | Destination signal pointer. product of source1 and source2 signal elements to be added to destination elements |
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
System.Int32 | nScaleFactor | Integer Result Scaling. |
Returns
Type | Description |
---|---|
NppStatus |
nppsAddProduct_16s32s_Sfs(CUdeviceptr, CUdeviceptr, CUdeviceptr, Int32, Int32)
16-bit signed short signal add product of source signal1 times source signal2 to 32-bit signed integer destination signal, with scaling, then clamp to saturated value.
Declaration
public static NppStatus nppsAddProduct_16s32s_Sfs(CUdeviceptr pSrc1, CUdeviceptr pSrc2, CUdeviceptr pDst, int nLength, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | Source signal pointer. |
CUdeviceptr | pSrc2 | Source signal pointer. |
CUdeviceptr | pDst | Destination signal pointer. product of source1 and source2 signal elements to be added to destination elements |
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
System.Int32 | nScaleFactor | Integer Result Scaling. |
Returns
Type | Description |
---|---|
NppStatus |
nppsAddProduct_32f(CUdeviceptr, CUdeviceptr, CUdeviceptr, Int32)
32-bit floating point signal add product of source signal times destination signal to destination signal, then clamp to saturated value.
Declaration
public static NppStatus nppsAddProduct_32f(CUdeviceptr pSrc1, CUdeviceptr pSrc2, CUdeviceptr pDst, int nLength)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | Source signal pointer. |
CUdeviceptr | pSrc2 | Source signal pointer. |
CUdeviceptr | pDst | Destination signal pointer. product of source1 and source2 signal elements to be added to destination elements |
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
Returns
Type | Description |
---|---|
NppStatus |
nppsAddProduct_32fc(CUdeviceptr, CUdeviceptr, CUdeviceptr, Int32)
32-bit complex floating point signal add product of source signal times destination signal to destination signal, then clamp to saturated value.
Declaration
public static NppStatus nppsAddProduct_32fc(CUdeviceptr pSrc1, CUdeviceptr pSrc2, CUdeviceptr pDst, int nLength)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | Source signal pointer. |
CUdeviceptr | pSrc2 | Source signal pointer. |
CUdeviceptr | pDst | Destination signal pointer. product of source1 and source2 signal elements to be added to destination elements |
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
Returns
Type | Description |
---|---|
NppStatus |
nppsAddProduct_32s_Sfs(CUdeviceptr, CUdeviceptr, CUdeviceptr, Int32, Int32)
32-bit signed short signal add product of source signal1 times source signal2 to destination signal, with scaling, then clamp to saturated value.
Declaration
public static NppStatus nppsAddProduct_32s_Sfs(CUdeviceptr pSrc1, CUdeviceptr pSrc2, CUdeviceptr pDst, int nLength, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | Source signal pointer. |
CUdeviceptr | pSrc2 | Source signal pointer. |
CUdeviceptr | pDst | Destination signal pointer. product of source1 and source2 signal elements to be added to destination elements |
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
System.Int32 | nScaleFactor | Integer Result Scaling. |
Returns
Type | Description |
---|---|
NppStatus |
nppsAddProduct_64f(CUdeviceptr, CUdeviceptr, CUdeviceptr, Int32)
64-bit floating point signal add product of source signal times destination signal to destination signal, then clamp to saturated value.
Declaration
public static NppStatus nppsAddProduct_64f(CUdeviceptr pSrc1, CUdeviceptr pSrc2, CUdeviceptr pDst, int nLength)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | Source signal pointer. |
CUdeviceptr | pSrc2 | Source signal pointer. |
CUdeviceptr | pDst | Destination signal pointer. product of source1 and source2 signal elements to be added to destination elements |
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
Returns
Type | Description |
---|---|
NppStatus |
nppsAddProduct_64fc(CUdeviceptr, CUdeviceptr, CUdeviceptr, Int32)
64-bit complex floating point signal add product of source signal times destination signal to destination signal, then clamp to saturated value.
Declaration
public static NppStatus nppsAddProduct_64fc(CUdeviceptr pSrc1, CUdeviceptr pSrc2, CUdeviceptr pDst, int nLength)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | Source signal pointer. |
CUdeviceptr | pSrc2 | Source signal pointer. |
CUdeviceptr | pDst | Destination signal pointer. product of source1 and source2 signal elements to be added to destination elements |
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
Returns
Type | Description |
---|---|
NppStatus |