Class NPPNativeMethods.NPPs.SubSignal
Sample by sample subtraction of the samples of two signals.
Inheritance
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public static class SubSignal
Methods
nppsSub_16s(CUdeviceptr, CUdeviceptr, CUdeviceptr, Int32)
16-bit signed short signal subtract signal, then clamp to saturated value.
Declaration
public static NppStatus nppsSub_16s(CUdeviceptr pSrc1, CUdeviceptr pSrc2, CUdeviceptr pDst, int nLength)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | Source signal pointer. |
CUdeviceptr | pSrc2 | Source signal pointer. signal1 elements to be subtracted from signal2 elements |
CUdeviceptr | pDst | Destination signal pointer. |
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 |
nppsSub_16s_I(CUdeviceptr, CUdeviceptr, Int32)
16-bit signed short in place signal subtract signal, then clamp to saturated value.
Declaration
public static NppStatus nppsSub_16s_I(CUdeviceptr pSrc, CUdeviceptr pSrcDst, int nLength)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source signal pointer. |
CUdeviceptr | pSrcDst | In-Place Signal Pointer. signal1 elements to be subtracted from signal2 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 |
nppsSub_16s_ISfs(CUdeviceptr, CUdeviceptr, Int32, Int32)
16-bit signed short in place signal subtract signal, with scaling, then clamp to saturated value.
Declaration
public static NppStatus nppsSub_16s_ISfs(CUdeviceptr pSrc, CUdeviceptr pSrcDst, int nLength, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source signal pointer. |
CUdeviceptr | pSrcDst | In-Place Signal Pointer. signal1 elements to be subtracted from signal2 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 |
nppsSub_16s_Sfs(CUdeviceptr, CUdeviceptr, CUdeviceptr, Int32, Int32)
16-bit signed short signal subtract signal, scale, then clamp to saturated value.
Declaration
public static NppStatus nppsSub_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, signal1 elements to be subtracted from signal2 elements. |
CUdeviceptr | pDst | Destination signal pointer. |
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 |
nppsSub_16s32f(CUdeviceptr, CUdeviceptr, CUdeviceptr, Int32)
16-bit signed short signal subtract 16-bit signed short signal, then clamp and convert to 32-bit floating point saturated value.
Declaration
public static NppStatus nppsSub_16s32f(CUdeviceptr pSrc1, CUdeviceptr pSrc2, CUdeviceptr pDst, int nLength)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | Source signal pointer. |
CUdeviceptr | pSrc2 | Source signal pointer. signal1 elements to be subtracted from signal2 elements |
CUdeviceptr | pDst | Destination signal pointer. |
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 |
nppsSub_16sc_ISfs(CUdeviceptr, CUdeviceptr, Int32, Int32)
16-bit complex signed short in place signal subtract signal, with scaling, then clamp to saturated value.
Declaration
public static NppStatus nppsSub_16sc_ISfs(CUdeviceptr pSrc, CUdeviceptr pSrcDst, int nLength, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source signal pointer. |
CUdeviceptr | pSrcDst | In-Place Signal Pointer. signal1 elements to be subtracted from signal2 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 |
nppsSub_16sc_Sfs(CUdeviceptr, CUdeviceptr, CUdeviceptr, Int32, Int32)
16-bit signed complex short signal subtract signal, scale, then clamp to saturated value.
Declaration
public static NppStatus nppsSub_16sc_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, signal1 elements to be subtracted from signal2 elements. |
CUdeviceptr | pDst | Destination signal pointer. |
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 |
nppsSub_16u_ISfs(CUdeviceptr, CUdeviceptr, Int32, Int32)
16-bit unsigned short in place signal subtract signal, with scaling, then clamp to saturated value.
Declaration
public static NppStatus nppsSub_16u_ISfs(CUdeviceptr pSrc, CUdeviceptr pSrcDst, int nLength, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source signal pointer. |
CUdeviceptr | pSrcDst | In-Place Signal Pointer. signal1 elements to be subtracted from signal2 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 |
nppsSub_16u_Sfs(CUdeviceptr, CUdeviceptr, CUdeviceptr, Int32, Int32)
16-bit unsigned short signal subtract signal, scale, then clamp to saturated value.
Declaration
public static NppStatus nppsSub_16u_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, signal1 elements to be subtracted from signal2 elements. |
CUdeviceptr | pDst | Destination signal pointer. |
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 |
nppsSub_32f(CUdeviceptr, CUdeviceptr, CUdeviceptr, Int32)
32-bit floating point signal subtract signal, then clamp to saturated value.
Declaration
public static NppStatus nppsSub_32f(CUdeviceptr pSrc1, CUdeviceptr pSrc2, CUdeviceptr pDst, int nLength)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | Source signal pointer. |
CUdeviceptr | pSrc2 | Source signal pointer. signal1 elements to be subtracted from signal2 elements |
CUdeviceptr | pDst | Destination signal pointer. |
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 |
nppsSub_32f_I(CUdeviceptr, CUdeviceptr, Int32)
32-bit floating point in place signal subtract signal, then clamp to saturated value.
Declaration
public static NppStatus nppsSub_32f_I(CUdeviceptr pSrc, CUdeviceptr pSrcDst, int nLength)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source signal pointer. |
CUdeviceptr | pSrcDst | In-Place Signal Pointer. signal1 elements to be subtracted from signal2 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 |
nppsSub_32fc(CUdeviceptr, CUdeviceptr, CUdeviceptr, Int32)
32-bit complex floating point signal subtract signal, then clamp to saturated value.
Declaration
public static NppStatus nppsSub_32fc(CUdeviceptr pSrc1, CUdeviceptr pSrc2, CUdeviceptr pDst, int nLength)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | Source signal pointer. |
CUdeviceptr | pSrc2 | Source signal pointer. signal1 elements to be subtracted from signal2 elements |
CUdeviceptr | pDst | Destination signal pointer. |
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 |
nppsSub_32fc_I(CUdeviceptr, CUdeviceptr, Int32)
32-bit complex floating point in place signal subtract signal, then clamp to saturated value.
Declaration
public static NppStatus nppsSub_32fc_I(CUdeviceptr pSrc, CUdeviceptr pSrcDst, int nLength)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source signal pointer. |
CUdeviceptr | pSrcDst | In-Place Signal Pointer. signal1 elements to be subtracted from signal2 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 |
nppsSub_32s_ISfs(CUdeviceptr, CUdeviceptr, Int32, Int32)
32-bit signed integer in place signal subtract signal, with scaling, then clamp to saturated value.
Declaration
public static NppStatus nppsSub_32s_ISfs(CUdeviceptr pSrc, CUdeviceptr pSrcDst, int nLength, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source signal pointer. |
CUdeviceptr | pSrcDst | In-Place Signal Pointer. signal1 elements to be subtracted from signal2 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 |
nppsSub_32s_Sfs(CUdeviceptr, CUdeviceptr, CUdeviceptr, Int32, Int32)
32-bit signed integer signal subtract signal, scale, then clamp to saturated value.
Declaration
public static NppStatus nppsSub_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, signal1 elements to be subtracted from signal2 elements. |
CUdeviceptr | pDst | Destination signal pointer. |
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 |
nppsSub_32sc_ISfs(CUdeviceptr, CUdeviceptr, Int32, Int32)
32-bit complex signed integer in place signal subtract signal, with scaling, then clamp to saturated value.
Declaration
public static NppStatus nppsSub_32sc_ISfs(CUdeviceptr pSrc, CUdeviceptr pSrcDst, int nLength, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source signal pointer. |
CUdeviceptr | pSrcDst | In-Place Signal Pointer. signal1 elements to be subtracted from signal2 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 |
nppsSub_32sc_Sfs(CUdeviceptr, CUdeviceptr, CUdeviceptr, Int32, Int32)
32-bit signed complex integer signal subtract signal, scale, then clamp to saturated value.
Declaration
public static NppStatus nppsSub_32sc_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, signal1 elements to be subtracted from signal2 elements. |
CUdeviceptr | pDst | Destination signal pointer. |
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 |
nppsSub_64f(CUdeviceptr, CUdeviceptr, CUdeviceptr, Int32)
64-bit floating point signal subtract signal, then clamp to saturated value.
Declaration
public static NppStatus nppsSub_64f(CUdeviceptr pSrc1, CUdeviceptr pSrc2, CUdeviceptr pDst, int nLength)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | Source signal pointer. |
CUdeviceptr | pSrc2 | Source signal pointer. signal1 elements to be subtracted from signal2 elements |
CUdeviceptr | pDst | Destination signal pointer. |
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 |
nppsSub_64f_I(CUdeviceptr, CUdeviceptr, Int32)
64-bit floating point in place signal subtract signal, then clamp to saturated value.
Declaration
public static NppStatus nppsSub_64f_I(CUdeviceptr pSrc, CUdeviceptr pSrcDst, int nLength)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source signal pointer. |
CUdeviceptr | pSrcDst | In-Place Signal Pointer. signal1 elements to be subtracted from signal2 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 |
nppsSub_64fc(CUdeviceptr, CUdeviceptr, CUdeviceptr, Int32)
64-bit complex floating point signal subtract signal, then clamp to saturated value.
Declaration
public static NppStatus nppsSub_64fc(CUdeviceptr pSrc1, CUdeviceptr pSrc2, CUdeviceptr pDst, int nLength)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | Source signal pointer. |
CUdeviceptr | pSrc2 | Source signal pointer. signal1 elements to be subtracted from signal2 elements |
CUdeviceptr | pDst | Destination signal pointer. |
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 |
nppsSub_64fc_I(CUdeviceptr, CUdeviceptr, Int32)
64-bit complex floating point in place signal subtract signal, then clamp to saturated value.
Declaration
public static NppStatus nppsSub_64fc_I(CUdeviceptr pSrc, CUdeviceptr pSrcDst, int nLength)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source signal pointer. |
CUdeviceptr | pSrcDst | In-Place Signal Pointer. signal1 elements to be subtracted from signal2 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 |
nppsSub_8u_ISfs(CUdeviceptr, CUdeviceptr, Int32, Int32)
8-bit unsigned char in place signal subtract signal, with scaling, then clamp to saturated value.
Declaration
public static NppStatus nppsSub_8u_ISfs(CUdeviceptr pSrc, CUdeviceptr pSrcDst, int nLength, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source signal pointer. |
CUdeviceptr | pSrcDst | In-Place Signal Pointer. signal1 elements to be subtracted from signal2 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 |
nppsSub_8u_Sfs(CUdeviceptr, CUdeviceptr, CUdeviceptr, Int32, Int32)
8-bit unsigned char signal subtract signal, scale, then clamp to saturated value.
Declaration
public static NppStatus nppsSub_8u_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, signal1 elements to be subtracted from signal2 elements. |
CUdeviceptr | pDst | Destination signal pointer. |
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 |