Class NPPNativeMethods.NPPs.Sum
Functions that provide global signal statistics like: average, standard deviation, minimum, etc.
Inheritance
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public static class Sum
Methods
nppsSum_16s_Sfs(CUdeviceptr, Int32, CUdeviceptr, Int32, CUdeviceptr)
16-bit short vector sum with integer scaling method
Declaration
public static NppStatus nppsSum_16s_Sfs(CUdeviceptr pSrc, int nLength, CUdeviceptr pSum, int nScaleFactor, CUdeviceptr pDeviceBuffer)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source 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.. |
CUdeviceptr | pSum | Pointer to the output result. |
System.Int32 | nScaleFactor | Integer Result Scaling. |
CUdeviceptr | pDeviceBuffer | Pointer to the required device memory allocation. |
Returns
Type | Description |
---|---|
NppStatus |
nppsSum_16s32s_Sfs(CUdeviceptr, Int32, CUdeviceptr, Int32, CUdeviceptr)
16-bit integer vector sum (32bit) with integer scaling method
Declaration
public static NppStatus nppsSum_16s32s_Sfs(CUdeviceptr pSrc, int nLength, CUdeviceptr pSum, int nScaleFactor, CUdeviceptr pDeviceBuffer)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source 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.. |
CUdeviceptr | pSum | Pointer to the output result. |
System.Int32 | nScaleFactor | Integer Result Scaling. |
CUdeviceptr | pDeviceBuffer | Pointer to the required device memory allocation. |
Returns
Type | Description |
---|---|
NppStatus |
nppsSum_16sc_Sfs(CUdeviceptr, Int32, CUdeviceptr, Int32, CUdeviceptr)
16-bit short complex vector sum with integer scaling method
Declaration
public static NppStatus nppsSum_16sc_Sfs(CUdeviceptr pSrc, int nLength, CUdeviceptr pSum, int nScaleFactor, CUdeviceptr pDeviceBuffer)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source 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.. |
CUdeviceptr | pSum | Pointer to the output result. |
System.Int32 | nScaleFactor | Integer Result Scaling. |
CUdeviceptr | pDeviceBuffer | Pointer to the required device memory allocation. |
Returns
Type | Description |
---|---|
NppStatus |
nppsSum_16sc32sc_Sfs(CUdeviceptr, Int32, CUdeviceptr, Int32, CUdeviceptr)
16-bit short complex vector sum (32bit int complex) with integer scaling method
Declaration
public static NppStatus nppsSum_16sc32sc_Sfs(CUdeviceptr pSrc, int nLength, CUdeviceptr pSum, int nScaleFactor, CUdeviceptr pDeviceBuffer)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source 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.. |
CUdeviceptr | pSum | Pointer to the output result. |
System.Int32 | nScaleFactor | Integer Result Scaling. |
CUdeviceptr | pDeviceBuffer | Pointer to the required device memory allocation. |
Returns
Type | Description |
---|---|
NppStatus |
nppsSum_32f(CUdeviceptr, Int32, CUdeviceptr, CUdeviceptr)
32-bit float vector sum method
Declaration
public static NppStatus nppsSum_32f(CUdeviceptr pSrc, int nLength, CUdeviceptr pSum, CUdeviceptr pDeviceBuffer)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source 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.. |
CUdeviceptr | pSum | Pointer to the output result. |
CUdeviceptr | pDeviceBuffer | Pointer to the required device memory allocation. |
Returns
Type | Description |
---|---|
NppStatus |
nppsSum_32fc(CUdeviceptr, Int32, CUdeviceptr, CUdeviceptr)
32-bit float complex vector sum method
Declaration
public static NppStatus nppsSum_32fc(CUdeviceptr pSrc, int nLength, CUdeviceptr pSum, CUdeviceptr pDeviceBuffer)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source 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.. |
CUdeviceptr | pSum | Pointer to the output result. |
CUdeviceptr | pDeviceBuffer | Pointer to the required device memory allocation. |
Returns
Type | Description |
---|---|
NppStatus |
nppsSum_32s_Sfs(CUdeviceptr, Int32, CUdeviceptr, Int32, CUdeviceptr)
32-bit integer vector sum with integer scaling method
Declaration
public static NppStatus nppsSum_32s_Sfs(CUdeviceptr pSrc, int nLength, CUdeviceptr pSum, int nScaleFactor, CUdeviceptr pDeviceBuffer)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source 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.. |
CUdeviceptr | pSum | Pointer to the output result. |
System.Int32 | nScaleFactor | Integer Result Scaling. |
CUdeviceptr | pDeviceBuffer | Pointer to the required device memory allocation. |
Returns
Type | Description |
---|---|
NppStatus |
nppsSum_64f(CUdeviceptr, Int32, CUdeviceptr, CUdeviceptr)
64-bit double vector sum method
Declaration
public static NppStatus nppsSum_64f(CUdeviceptr pSrc, int nLength, CUdeviceptr pSum, CUdeviceptr pDeviceBuffer)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source 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.. |
CUdeviceptr | pSum | Pointer to the output result. |
CUdeviceptr | pDeviceBuffer | Pointer to the required device memory allocation. |
Returns
Type | Description |
---|---|
NppStatus |
nppsSum_64fc(CUdeviceptr, Int32, CUdeviceptr, CUdeviceptr)
64-bit double complex vector sum method
Declaration
public static NppStatus nppsSum_64fc(CUdeviceptr pSrc, int nLength, CUdeviceptr pSum, CUdeviceptr pDeviceBuffer)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source 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.. |
CUdeviceptr | pSum | Pointer to the output result. |
CUdeviceptr | pDeviceBuffer | Pointer to the required device memory allocation. |
Returns
Type | Description |
---|---|
NppStatus |
nppsSumGetBufferSize_16s_Sfs(Int32, ref Int32)
Device scratch buffer size (in bytes) for nppsSum_16s_Sfs.
Declaration
public static NppStatus nppsSumGetBufferSize_16s_Sfs(int nLength, ref int hpBufferSize)
Parameters
Type | Name | Description |
---|---|---|
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 | hpBufferSize | Required buffer size. Important: hpBufferSize is a |
Returns
Type | Description |
---|---|
NppStatus | NPP_SUCCESS |
nppsSumGetBufferSize_16s32s_Sfs(Int32, ref Int32)
Device scratch buffer size (in bytes) for nppsSum_16s32s_Sfs.
Declaration
public static NppStatus nppsSumGetBufferSize_16s32s_Sfs(int nLength, ref int hpBufferSize)
Parameters
Type | Name | Description |
---|---|---|
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 | hpBufferSize | Required buffer size. Important: hpBufferSize is a |
Returns
Type | Description |
---|---|
NppStatus | NPP_SUCCESS |
nppsSumGetBufferSize_16sc_Sfs(Int32, ref Int32)
Device scratch buffer size (in bytes) for nppsSum_16sc_Sfs.
Declaration
public static NppStatus nppsSumGetBufferSize_16sc_Sfs(int nLength, ref int hpBufferSize)
Parameters
Type | Name | Description |
---|---|---|
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 | hpBufferSize | Required buffer size. Important: hpBufferSize is a |
Returns
Type | Description |
---|---|
NppStatus | NPP_SUCCESS |
nppsSumGetBufferSize_16sc32sc_Sfs(Int32, ref Int32)
Device scratch buffer size (in bytes) for nppsSum_16sc32sc_Sfs.
Declaration
public static NppStatus nppsSumGetBufferSize_16sc32sc_Sfs(int nLength, ref int hpBufferSize)
Parameters
Type | Name | Description |
---|---|---|
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 | hpBufferSize | Required buffer size. Important: hpBufferSize is a |
Returns
Type | Description |
---|---|
NppStatus | NPP_SUCCESS |
nppsSumGetBufferSize_32f(Int32, ref Int32)
Device scratch buffer size (in bytes) for nppsSum_32f.
Declaration
public static NppStatus nppsSumGetBufferSize_32f(int nLength, ref int hpBufferSize)
Parameters
Type | Name | Description |
---|---|---|
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 | hpBufferSize | Required buffer size. Important: hpBufferSize is a |
Returns
Type | Description |
---|---|
NppStatus | NPP_SUCCESS |
nppsSumGetBufferSize_32fc(Int32, ref Int32)
Device scratch buffer size (in bytes) for nppsSum_32fc.
Declaration
public static NppStatus nppsSumGetBufferSize_32fc(int nLength, ref int hpBufferSize)
Parameters
Type | Name | Description |
---|---|---|
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 | hpBufferSize | Required buffer size. Important: hpBufferSize is a |
Returns
Type | Description |
---|---|
NppStatus | NPP_SUCCESS |
nppsSumGetBufferSize_32s_Sfs(Int32, ref Int32)
Device scratch buffer size (in bytes) for nppsSum_32s_Sfs.
Declaration
public static NppStatus nppsSumGetBufferSize_32s_Sfs(int nLength, ref int hpBufferSize)
Parameters
Type | Name | Description |
---|---|---|
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 | hpBufferSize | Required buffer size. Important: hpBufferSize is a |
Returns
Type | Description |
---|---|
NppStatus | NPP_SUCCESS |
nppsSumGetBufferSize_64f(Int32, ref Int32)
Device scratch buffer size (in bytes) for nppsSum_64f.
Declaration
public static NppStatus nppsSumGetBufferSize_64f(int nLength, ref int hpBufferSize)
Parameters
Type | Name | Description |
---|---|---|
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 | hpBufferSize | Required buffer size. Important: hpBufferSize is a |
Returns
Type | Description |
---|---|
NppStatus | NPP_SUCCESS |
nppsSumGetBufferSize_64fc(Int32, ref Int32)
Device scratch buffer size (in bytes) for nppsSum_64fc.
Declaration
public static NppStatus nppsSumGetBufferSize_64fc(int nLength, ref int hpBufferSize)
Parameters
Type | Name | Description |
---|---|---|
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 | hpBufferSize | Required buffer size. Important: hpBufferSize is a |
Returns
Type | Description |
---|---|
NppStatus | NPP_SUCCESS |