Library/ManagedCuda/NPP/NPPsExtensionMethods.cs
/// <summary>
/// Computes the number of elements whose values fall into the specified range on a 32-bit signed integer array.
/// </summary>
/// <param name="pSrc">Source signal pointer.</param>
/// <param name="pCounts">Pointer to the number of elements.</param>
/// <param name="nLowerBound">Lower bound of the specified range.</param>
/// <param name="nUpperBound">Upper bound of the specified range.</param>
/// <param name="pDeviceBuffer">Pointer to the required device memory allocation. </param>
Computes the number of elements whose values fall into the specified range on a 32-bit signed integer array.
Computes the number of elements whose values fall into the specified range on a 32 - bit signed integer array .
public static void CountInRange(this CudaDeviceVariable<int> pSrc, CudaDeviceVariable<int> pCounts, CudaDeviceVariable<byte> pDeviceBuffer, int nLowerBound, int nUpperBound)
		{
			NppStatus status = NPPNativeMethods.NPPs.CountInRange.nppsCountInRange_32s(pSrc.DevicePointer, pSrc.Size, pCounts.DevicePointer, nLowerBound, nUpperBound, pDeviceBuffer.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppsCountInRange_32s", status));
			NPPException.CheckNppStatus(status, pSrc);
		}
public static void CountInRange ( this CudaDeviceVariable < int > pSrc , CudaDeviceVariable < int > pCounts , CudaDeviceVariable < byte > pDeviceBuffer , int nLowerBound , int nUpperBound ) { NppStatus status = NPPNativeMethods . NPPs . CountInRange . nppsCountInRange_32s ( pSrc . DevicePointer , pSrc . Size , pCounts . DevicePointer , nLowerBound , nUpperBound , pDeviceBuffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , pSrc ) ; }
Computes the number of elements whose values fall into the specified range on a 32-bit signed integer array.
Computes the number of elements whose values fall into the specified range on a 32 - bit signed integer array .
CudaDeviceVariable<int>
this
pCounts
CudaDeviceVariable<int>
Pointer to the number of elements.
Pointer to the number of elements .
pDeviceBuffer
CudaDeviceVariable<byte>
Pointer to the required device memory allocation.
Pointer to the required device memory allocation .
nLowerBound
int
Lower bound of the specified range.
Lower bound of the specified range .
nUpperBound
int
Upper bound of the specified range.
Upper bound of the specified range .
pSrc
Source signal pointer.
Source signal pointer .