Library/ManagedCuda/NPP/NPPsExtensionMethods.cs
/// <summary>
/// 32-bit float vector mean method
/// </summary>
/// <param name="pSrc">Source signal pointer.</param>
/// <param name="pMean">Pointer to the output result.</param>
/// <param name="pDeviceBuffer">Pointer to the required device memory allocation. </param>
32-bit float vector mean method
32 - bit float vector mean method
public static void Mean(this CudaDeviceVariable<float> pSrc, CudaDeviceVariable<float> pMean, CudaDeviceVariable<byte> pDeviceBuffer)
		{
			NppStatus status = NPPNativeMethods.NPPs.MeanStdDev.nppsMean_32f(pSrc.DevicePointer, pSrc.Size, pMean.DevicePointer, pDeviceBuffer.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppsMean_32f", status));
			NPPException.CheckNppStatus(status, pSrc);
		}
public static void Mean ( this CudaDeviceVariable < float > pSrc , CudaDeviceVariable < float > pMean , CudaDeviceVariable < byte > pDeviceBuffer ) { NppStatus status = NPPNativeMethods . NPPs . MeanStdDev . nppsMean_32f ( pSrc . DevicePointer , pSrc . Size , pMean . DevicePointer , pDeviceBuffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , pSrc ) ; }
32-bit float vector mean method
32 - bit float vector mean method
CudaDeviceVariable<float>
this
pMean
CudaDeviceVariable<float>
Pointer to the output result.
Pointer to the output result .
pDeviceBuffer
CudaDeviceVariable<byte>
Pointer to the required device memory allocation.
Pointer to the required device memory allocation .
pSrc
Source signal pointer.
Source signal pointer .