Library/ManagedCuda/CudaBlas/CudaBlasHandler.cs
/// <summary>
/// This function applies Givens rotation matrix G = |c s; -s c| to vectors x and y.
/// </summary>
/// <param name="x"></param>
/// <param name="incx"></param>
/// <param name="y"></param>
/// <param name="incy"></param>
/// <param name="c">Cosine component</param>
/// <param name="s">Sine component</param>
This function applies Givens rotation matrix G = |c s; -s c| to vectors x and y.
This function applies Givens rotation matrix G = |c s ; - s c| to vectors x and y .
public void Rot(CudaDeviceVariable<float> x, int incx, CudaDeviceVariable<float> y, int incy, float c, float s)
		{
			_status = CudaBlasNativeMethods.cublasSrot_v2(_blasHandle, x.Size, x.DevicePointer, incx, y.DevicePointer, incy, ref c, ref s);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cublasSrot_v2", _status));
			if (_status != CublasStatus.Success) throw new CudaBlasException(_status);
		}
public void Rot ( CudaDeviceVariable < float > x , int incx , CudaDeviceVariable < float > y , int incy , float c , float s ) { _status = CudaBlasNativeMethods . cublasSrot_v2 ( _blasHandle , x . Size , x . DevicePointer , incx , y . DevicePointer , incy , ref c , ref s ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , _status ) ) ; if ( _status != CublasStatus . Success ) throw new CudaBlasException ( _status ) ; }
This function applies Givens rotation matrix G = |c s; -s c| to vectors x and y.
This function applies Givens rotation matrix G = |c s ; - s c| to vectors x and y .
x
CudaDeviceVariable<float>
None
incx
int
None
y
CudaDeviceVariable<float>
None
incy
int
None
c
float
None
s
float
None