Class NPPNativeMethods.NPPs.CountInRange
Count In Range
Inheritance
System.Object
NPPNativeMethods.NPPs.CountInRange
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public static class CountInRange
Methods
nppsCountInRange_32s(CUdeviceptr, Int32, CUdeviceptr, Int32, Int32, CUdeviceptr)
Computes the number of elements whose values fall into the specified range on a 32-bit signed integer array.
Declaration
public static NppStatus nppsCountInRange_32s(CUdeviceptr pSrc, int nLength, CUdeviceptr pCounts, int nLowerBound, int nUpperBound, 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 | pCounts | Pointer to the number of elements. |
System.Int32 | nLowerBound | Lower bound of the specified range. |
System.Int32 | nUpperBound | Upper bound of the specified range. |
CUdeviceptr | pDeviceBuffer | Pointer to the required device memory allocation. |
Returns
Type | Description |
---|---|
NppStatus |
nppsCountInRangeGetBufferSize_32s(Int32, ref Int32)
Device-buffer size (in bytes) for nppsCountInRange_32s.
Declaration
public static NppStatus nppsCountInRangeGetBufferSize_32s(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. |
Returns
Type | Description |
---|---|
NppStatus |