Library/ManagedCuda/CudaBlas/CudaBlasHandler.cs
/// <summary>
/// This function constructs the Givens rotation matrix G = |c s; -s c| that zeros out the second entry of a 2x1 vector (a; b)T
/// </summary>
/// <param name="a"></param>
/// <param name="b"></param>
/// <param name="c">Cosine component</param>
/// <param name="s">Sine component</param>
This function constructs the Givens rotation matrix G = |c s; -s c| that zeros out the second entry of a 2x1 vector (a; b)T
This function constructs the Givens rotation matrix G = |c s ; - s c| that zeros out the second entry of a 2x1 vector ( a ; b ) T
public void Rotg(CudaDeviceVariable<cuDoubleComplex> a, CudaDeviceVariable<cuDoubleComplex> b, CudaDeviceVariable<cuDoubleComplex> c, CudaDeviceVariable<cuDoubleComplex> s)
		{
			_status = CudaBlasNativeMethods.cublasZrotg_v2(_blasHandle, a.DevicePointer, b.DevicePointer, c.DevicePointer, s.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cublasZrotg_v2", _status));
			if (_status != CublasStatus.Success) throw new CudaBlasException(_status);
		}
public void Rotg ( CudaDeviceVariable < cuDoubleComplex > a , CudaDeviceVariable < cuDoubleComplex > b , CudaDeviceVariable < cuDoubleComplex > c , CudaDeviceVariable < cuDoubleComplex > s ) { _status = CudaBlasNativeMethods . cublasZrotg_v2 ( _blasHandle , a . DevicePointer , b . DevicePointer , c . DevicePointer , s . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , _status ) ) ; if ( _status != CublasStatus . Success ) throw new CudaBlasException ( _status ) ; }
This function constructs the Givens rotation matrix G = |c s; -s c| that zeros out the second entry of a 2x1 vector (a; b)T
This function constructs the Givens rotation matrix G = |c s ; - s c| that zeros out the second entry of a 2x1 vector ( a ; b ) T
a
CudaDeviceVariable<cuDoubleComplex>
None
b
CudaDeviceVariable<cuDoubleComplex>
None
c
CudaDeviceVariable<cuDoubleComplex>
None
s
CudaDeviceVariable<cuDoubleComplex>
None