Class NPPNativeMethods.NPPs.SumLn
Sums up the natural logarithm of each sample of a signal.
Inheritance
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public static class SumLn
Methods
nppsSumLn_16s32f(CUdeviceptr, Int32, CUdeviceptr, CUdeviceptr)
16-bit signed short integer input, 32-bit floating point output signal sum natural logarithm.
Declaration
public static NppStatus nppsSumLn_16s32f(CUdeviceptr pSrc, int nLength, CUdeviceptr pDst, 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 | pDst | Pointer to the output result. |
CUdeviceptr | pDeviceBuffer | Pointer to the required device memory allocation. |
Returns
Type | Description |
---|---|
NppStatus |
nppsSumLn_32f(CUdeviceptr, Int32, CUdeviceptr, CUdeviceptr)
32-bit floating point signal sum natural logarithm.
Declaration
public static NppStatus nppsSumLn_32f(CUdeviceptr pSrc, int nLength, CUdeviceptr pDst, 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 | pDst | Pointer to the output result. |
CUdeviceptr | pDeviceBuffer | Pointer to the required device memory allocation. |
Returns
Type | Description |
---|---|
NppStatus |
nppsSumLn_32f64f(CUdeviceptr, Int32, CUdeviceptr, CUdeviceptr)
32-bit flaoting point input, 64-bit floating point output signal sum natural logarithm.
Declaration
public static NppStatus nppsSumLn_32f64f(CUdeviceptr pSrc, int nLength, CUdeviceptr pDst, 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 | pDst | Pointer to the output result. |
CUdeviceptr | pDeviceBuffer | Pointer to the required device memory allocation. |
Returns
Type | Description |
---|---|
NppStatus |
nppsSumLn_64f(CUdeviceptr, Int32, CUdeviceptr, CUdeviceptr)
64-bit floating point signal sum natural logarithm.
Declaration
public static NppStatus nppsSumLn_64f(CUdeviceptr pSrc, int nLength, CUdeviceptr pDst, 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 | pDst | Pointer to the output result. |
CUdeviceptr | pDeviceBuffer | Pointer to the required device memory allocation. |
Returns
Type | Description |
---|---|
NppStatus |
nppsSumLnGetBufferSize_16s32f(Int32, ref Int32)
Device scratch buffer size (in bytes) for 16s32f SumLn. This primitive provides the correct buffer size for nppsSumLn_16s32f.
Declaration
public static NppStatus nppsSumLnGetBufferSize_16s32f(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 |
nppsSumLnGetBufferSize_32f(Int32, ref Int32)
Device scratch buffer size (in bytes) for 32f SumLn. This primitive provides the correct buffer size for nppsSumLn_32f.
Declaration
public static NppStatus nppsSumLnGetBufferSize_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 |
nppsSumLnGetBufferSize_32f64f(Int32, ref Int32)
Device scratch buffer size (in bytes) for 32f64f SumLn. This primitive provides the correct buffer size for nppsSumLn_32f64f.
Declaration
public static NppStatus nppsSumLnGetBufferSize_32f64f(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 |
nppsSumLnGetBufferSize_64f(Int32, ref Int32)
Device scratch buffer size (in bytes) for 64f SumLn. This primitive provides the correct buffer size for nppsSumLn_64f.
Declaration
public static NppStatus nppsSumLnGetBufferSize_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 |