Library/ManagedCuda/NPP/NPPsExtensionMethods.cs
/// <summary>
/// 32-bit float vector min and max with indices method
/// </summary>
/// <param name="pSrc">Source signal pointer.</param>
/// <param name="pMin">Pointer to the min output result.</param>
/// <param name="pMinIndx">Pointer to the index of the first min value.</param>
/// <param name="pMax">Pointer to the max output result.</param>
/// <param name="pMaxIndx">Pointer to the index of the first max value.</param>
/// <param name="pDeviceBuffer">Pointer to the required device memory allocation. </param>
32-bit float vector min and max with indices method
32 - bit float vector min and max with indices method
public static void MinMaxIndx(this CudaDeviceVariable<float> pSrc, CudaDeviceVariable<float> pMin, CudaDeviceVariable<int> pMinIndx, CudaDeviceVariable<float> pMax, CudaDeviceVariable<int> pMaxIndx, CudaDeviceVariable<byte> pDeviceBuffer)
		{
			NppStatus status = NPPNativeMethods.NPPs.MinMaxIndex.nppsMinMaxIndx_32f(pSrc.DevicePointer, pSrc.Size, pMin.DevicePointer, pMinIndx.DevicePointer, pMax.DevicePointer, pMaxIndx.DevicePointer, pDeviceBuffer.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppsMinMaxIndx_32f", status));
			NPPException.CheckNppStatus(status, pSrc);
		}
public static void MinMaxIndx ( this CudaDeviceVariable < float > pSrc , CudaDeviceVariable < float > pMin , CudaDeviceVariable < int > pMinIndx , CudaDeviceVariable < float > pMax , CudaDeviceVariable < int > pMaxIndx , CudaDeviceVariable < byte > pDeviceBuffer ) { NppStatus status = NPPNativeMethods . NPPs . MinMaxIndex . nppsMinMaxIndx_32f ( pSrc . DevicePointer , pSrc . Size , pMin . DevicePointer , pMinIndx . DevicePointer , pMax . DevicePointer , pMaxIndx . DevicePointer , pDeviceBuffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , pSrc ) ; }
32-bit float vector min and max with indices method
32 - bit float vector min and max with indices method
CudaDeviceVariable<float>
this
<not_specific>
pMin
CudaDeviceVariable<float>
Pointer to the min output result.
Pointer to the min output result .
pMinIndx
CudaDeviceVariable<int>
Pointer to the index of the first min value.
Pointer to the index of the first min value .
pMax
CudaDeviceVariable<float>
Pointer to the max output result.
Pointer to the max output result .
pMaxIndx
CudaDeviceVariable<int>
Pointer to the index of the first max value.
Pointer to the index of the first max value .
pDeviceBuffer
CudaDeviceVariable<byte>
Pointer to the required device memory allocation.
Pointer to the required device memory allocation .
pSrc
<not_specific>
Source signal pointer.
Source signal pointer .