Library/ManagedCuda/CudaBlas/CudaBlasHandler.cs
/// <summary>
/// This function performs the rank-1 update A = alpha * x * y^H + A where A is a m*n matrix stored in column-major format, 
/// x and y are vectors, and alpha is a scalar. m = x.Size, n = y.Size.
/// </summary>
/// <param name="alpha">scalar used for multiplication.</param>
/// <param name="x">vector with n elements.</param>
/// <param name="incx">stride between consecutive elements of x.</param>
/// <param name="y">vector with n elements.</param>
/// <param name="incy">stride between consecutive elements of y.</param>
/// <param name="A">array of dimensions lda * n, with lda >= max(1,n).</param>
/// <param name="lda">leading dimension of two-dimensional array used to store matrix A.</param>
This function performs the rank-1 update A = alpha * x * y^H + A where A is a m*n matrix stored in column-major format,
x and y are vectors, and alpha is a scalar.
This function performs the rank - 1 update A = alpha * x * y^H + A where A is a m * n matrix stored in column - major format x and y are vectors and alpha is a scalar .
public void GerC(CudaDeviceVariable<cuFloatComplex> alpha, CudaDeviceVariable<cuFloatComplex> x, int incx, CudaDeviceVariable<cuFloatComplex> y, int incy, CudaDeviceVariable<cuFloatComplex> A, int lda)
		{
			_status = CudaBlasNativeMethods.cublasCgerc_v2(_blasHandle, x.Size, y.Size, alpha.DevicePointer, x.DevicePointer, incx, y.DevicePointer, incy, A.DevicePointer, lda);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cublasCgerc_v2", _status));
			if (_status != CublasStatus.Success) throw new CudaBlasException(_status);
		}
public void GerC ( CudaDeviceVariable < cuFloatComplex > alpha , CudaDeviceVariable < cuFloatComplex > x , int incx , CudaDeviceVariable < cuFloatComplex > y , int incy , CudaDeviceVariable < cuFloatComplex > A , int lda ) { _status = CudaBlasNativeMethods . cublasCgerc_v2 ( _blasHandle , x . Size , y . Size , alpha . DevicePointer , x . DevicePointer , incx , y . DevicePointer , incy , A . DevicePointer , lda ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , _status ) ) ; if ( _status != CublasStatus . Success ) throw new CudaBlasException ( _status ) ; }
This function performs the rank-1 update A = alpha * x * y^H + A where A is a m*n matrix stored in column-major format,
x and y are vectors, and alpha is a scalar.
This function performs the rank - 1 update A = alpha * x * y^H + A where A is a m * n matrix stored in column - major format x and y are vectors and alpha is a scalar .
alpha
CudaDeviceVariable<cuFloatComplex>
scalar used for multiplication.
scalar used for multiplication .
x
CudaDeviceVariable<cuFloatComplex>
vector with n elements.
vector with n elements .
incx
int
stride between consecutive elements of x.
stride between consecutive elements of x .
y
CudaDeviceVariable<cuFloatComplex>
vector with n elements.
vector with n elements .
incy
int
stride between consecutive elements of y.
stride between consecutive elements of y .
A
CudaDeviceVariable<cuFloatComplex>
array of dimensions lda * n, with lda >= max(1,n).
array of dimensions lda * n with lda > = max ( 1 n ) .
lda
int
leading dimension of two-dimensional array used to store matrix A.
leading dimension of two - dimensional array used to store matrix A .