Library/ManagedCuda/NPP/NPPImage_16sC1.cs
/// <summary>
/// image sum with 64-bit double precision result. Buffer is internally allocated and freed.
/// </summary>
/// <param name="result">Allocated device memory with size of at least 1 * sizeof(double)</param>
image sum with 64-bit double precision result. Buffer is internally allocated and freed.
image sum with 64 - bit double precision result . Buffer is internally allocated and freed .
public void Sum(CudaDeviceVariable<double> result)
		{
			int bufferSize = SumGetBufferHostSize();
			CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);
			status = NPPNativeMethods.NPPi.Sum.nppiSum_16s_C1R(_devPtrRoi, _pitch, _sizeRoi, buffer.DevicePointer, result.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiSum_16s_C1R", status));
			buffer.Dispose();
			NPPException.CheckNppStatus(status, this);
		}
public void Sum ( CudaDeviceVariable < double > result ) { int bufferSize = SumGetBufferHostSize ( ) ; CudaDeviceVariable < byte > buffer = new CudaDeviceVariable < byte > ( bufferSize ) ; status = NPPNativeMethods . NPPi . Sum . nppiSum_16s_C1R ( _devPtrRoi , _pitch , _sizeRoi , buffer . DevicePointer , result . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; buffer . Dispose ( ) ; NPPException . CheckNppStatus ( status , this ) ; }
image sum with 64-bit double precision result.
image sum with 64 - bit double precision result .
result
CudaDeviceVariable<double>
Allocated device memory with size of at least 1 * sizeof(double)
Allocated device memory with size of at least 1 * sizeof ( double )