Library/ManagedCuda/NPP/NPPImage_32fC3.cs
/// <summary>
/// image L2 norm. Buffer is internally allocated and freed.
/// </summary>
/// <param name="norm">Allocated device memory with size of at least 3 * sizeof(double)</param>
image L2 norm. Buffer is internally allocated and freed.
image L2 norm . Buffer is internally allocated and freed .
public void NormL2(CudaDeviceVariable<double> norm)
		{
			int bufferSize = NormL2GetBufferHostSize();
			CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);
			status = NPPNativeMethods.NPPi.NormL2.nppiNorm_L2_32f_C3R(_devPtrRoi, _pitch, _sizeRoi, norm.DevicePointer, buffer.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiNorm_L2_32f_C3R", status));
			buffer.Dispose();
			NPPException.CheckNppStatus(status, this);
		}
public void NormL2 ( CudaDeviceVariable < double > norm ) { int bufferSize = NormL2GetBufferHostSize ( ) ; CudaDeviceVariable < byte > buffer = new CudaDeviceVariable < byte > ( bufferSize ) ; status = NPPNativeMethods . NPPi . NormL2 . nppiNorm_L2_32f_C3R ( _devPtrRoi , _pitch , _sizeRoi , norm . DevicePointer , buffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; buffer . Dispose ( ) ; NPPException . CheckNppStatus ( status , this ) ; }
image L2 norm.
image L2 norm .
norm
CudaDeviceVariable<double>
Allocated device memory with size of at least 3 * sizeof(double)
Allocated device memory with size of at least 3 * sizeof ( double )