Library/ManagedCuda/CudaBlas/CudaBlasHandler.cs
/// <summary>
/// This function solves the triangular linear system with a single right-hand-side Op(A)x = b where A is a triangular matrix stored in lower or 
/// upper mode with or without the main diagonal, and x and b are vectors. The solution x overwrites the right-hand-sides b on exit. n is given by x.Size.
/// </summary>
/// <param name="uplo">indicates if matrix A lower or upper part is stored, the other part is not referenced and is inferred from the stored elements.</param>
/// <param name="trans">operation op(A) that is non- or (conj.) transpose.</param>
/// <param name="diag">indicates if the elements on the main diagonal of matrix A are unity and should not be accessed.</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>
/// <param name="x">vector with n elements.</param>
/// <param name="incx">stride between consecutive elements of x.</param>
This function solves the triangular linear system with a single right-hand-side Op(A)x = b where A is a triangular matrix stored in lower or
upper mode with or without the main diagonal, and x and b are vectors. The solution x overwrites the right-hand-sides b on exit. n is given by x.Size.
This function solves the triangular linear system with a single right - hand - side Op ( A ) x = b where A is a triangular matrix stored in lower or upper mode with or without the main diagonal and x and b are vectors . The solution x overwrites the right - hand - sides b on exit . n is given by x . Size .
public void Trsv(FillMode uplo, Operation trans, DiagType diag, CudaDeviceVariable<cuDoubleComplex> A, int lda, CudaDeviceVariable<cuDoubleComplex> x, int incx)
		{
			_status = CudaBlasNativeMethods.cublasZtrsv_v2(_blasHandle, uplo, trans, diag, x.Size, A.DevicePointer, lda, x.DevicePointer, incx);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cublasZtrsv_v2", _status));
			if (_status != CublasStatus.Success) throw new CudaBlasException(_status);
		}
public void Trsv ( FillMode uplo , Operation trans , DiagType diag , CudaDeviceVariable < cuDoubleComplex > A , int lda , CudaDeviceVariable < cuDoubleComplex > x , int incx ) { _status = CudaBlasNativeMethods . cublasZtrsv_v2 ( _blasHandle , uplo , trans , diag , x . Size , A . DevicePointer , lda , x . DevicePointer , incx ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , _status ) ) ; if ( _status != CublasStatus . Success ) throw new CudaBlasException ( _status ) ; }
This function solves the triangular linear system with a single right-hand-side Op(A)x = b where A is a triangular matrix stored in lower or
upper mode with or without the main diagonal, and x and b are vectors.
This function solves the triangular linear system with a single right - hand - side Op ( A ) x = b where A is a triangular matrix stored in lower or upper mode with or without the main diagonal and x and b are vectors .
uplo
FillMode
indicates if matrix A lower or upper part is stored, the other part is not referenced and is inferred from the stored elements.
indicates if matrix A lower or upper part is stored the other part is not referenced and is inferred from the stored elements .
trans
Operation
operation op(A) that is non- or (conj.) transpose.
operation op ( A ) that is non - or ( conj . ) transpose .
diag
DiagType
indicates if the elements on the main diagonal of matrix A are unity and should not be accessed.
indicates if the elements on the main diagonal of matrix A are unity and should not be accessed .
A
CudaDeviceVariable<cuDoubleComplex>
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 .
x
CudaDeviceVariable<cuDoubleComplex>
vector with n elements.
vector with n elements .
incx
int
stride between consecutive elements of x.
stride between consecutive elements of x .