NVIDIA Performance Primitives (NPP)  Version 9.1
Functions
Count In Range

Functions

NppStatus nppsCountInRangeGetBufferSize_32s (int nLength, int *hpBufferSize)
 Device-buffer size (in bytes) for nppsCountInRange_32s. More...
 
NppStatus nppsCountInRange_32s (const Npp32s *pSrc, int nLength, int *pCounts, Npp32s nLowerBound, Npp32s nUpperBound, Npp8u *pDeviceBuffer)
 Computes the number of elements whose values fall into the specified range on a 32-bit signed integer array. More...
 

Detailed Description

Function Documentation

NppStatus nppsCountInRange_32s ( const Npp32s pSrc,
int  nLength,
int *  pCounts,
Npp32s  nLowerBound,
Npp32s  nUpperBound,
Npp8u pDeviceBuffer 
)

Computes the number of elements whose values fall into the specified range on a 32-bit signed integer array.

Parameters
pSrcSource Signal Pointer.
nLengthSignal Length.
pCountsPointer to the number of elements.
nLowerBoundLower bound of the specified range.
nUpperBoundUpper bound of the specified range.
pDeviceBufferPointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsCountInRangeGetBufferSize_32s to determine the minium number of bytes required.
Returns
Signal Data Related Error Codes, Length Related Error Codes.
NppStatus nppsCountInRangeGetBufferSize_32s ( int  nLength,
int *  hpBufferSize 
)

Device-buffer size (in bytes) for nppsCountInRange_32s.

Parameters
nLengthSignal Length.
hpBufferSizeRequired buffer size. Important: hpBufferSize is a host pointer.
Returns
NPP_SUCCESS

Copyright © 2009-2017 NVIDIA Corporation