Library/ManagedCuda/NPP/NPPImage_16uC1.cs
/// <summary>
/// image sum with 64-bit double precision result. No additional buffer is allocated.
/// </summary>
/// <param name="result">Allocated device memory with size of at least 1 * sizeof(double)</param>
/// <param name="buffer">Allocated device memory with size of at <see cref="SumGetBufferHostSize()"/></param>
image sum with 64-bit double precision result. No additional buffer is allocated.
image sum with 64 - bit double precision result . No additional buffer is allocated .
public void Sum(CudaDeviceVariable<double> result, CudaDeviceVariable<byte> buffer)
		{
			int bufferSize = SumGetBufferHostSize();
			if (bufferSize > buffer.Size) throw new NPPException("Provided buffer is too small.");
			status = NPPNativeMethods.NPPi.Sum.nppiSum_16u_C1R(_devPtrRoi, _pitch, _sizeRoi, buffer.DevicePointer, result.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiSum_16u_C1R", status));
			NPPException.CheckNppStatus(status, this);
		}
public void Sum ( CudaDeviceVariable < double > result , CudaDeviceVariable < byte > buffer ) { int bufferSize = SumGetBufferHostSize ( ) ; if ( bufferSize > buffer . Size ) throw new NPPException ( " " ) ; status = NPPNativeMethods . NPPi . Sum . nppiSum_16u_C1R ( _devPtrRoi , _pitch , _sizeRoi , buffer . DevicePointer , result . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; 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 )
buffer
CudaDeviceVariable<byte>
Allocated device memory with size of at
Allocated device memory with size of at