Library/ManagedCuda/CudaBlas/CudaBlasHandler.cs
/// <summary>
/// This function solves the triangular banded linear system with a single right-hand-side Op(A) x = b where A is a triangular banded matrix, and x and b is a vector. 
/// The solution x overwrites the right-hand-sides b on exit. n is given by x.Size. No test for singularity or near-singularity is included in this function.
/// </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="k">number of sub- and super-diagonals of matrix A.</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 banded linear system with a single right-hand-side Op(A) x = b where A is a triangular banded matrix, and x and b is a vector.
The solution x overwrites the right-hand-sides b on exit. n is given by x.Size. No test for singularity or near-singularity is included in this function.
This function solves the triangular banded linear system with a single right - hand - side Op ( A ) x = b where A is a triangular banded matrix and x and b is a vector . The solution x overwrites the right - hand - sides b on exit . n is given by x . Size . No test for singularity or near - singularity is included in this function .
public void Tbsv(FillMode uplo, Operation trans, DiagType diag, int k, CudaDeviceVariable<double> A, int lda, CudaDeviceVariable<double> x, int incx)
		{
			_status = CudaBlasNativeMethods.cublasDtbsv_v2(_blasHandle, uplo, trans, diag, x.Size, k, A.DevicePointer, lda, x.DevicePointer, incx);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cublasDtbsv_v2", _status));
			if (_status != CublasStatus.Success) throw new CudaBlasException(_status);
		}
public void Tbsv ( FillMode uplo , Operation trans , DiagType diag , int k , CudaDeviceVariable < double > A , int lda , CudaDeviceVariable < double > x , int incx ) { _status = CudaBlasNativeMethods . cublasDtbsv_v2 ( _blasHandle , uplo , trans , diag , x . Size , k , 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 banded linear system with a single right-hand-side Op(A) x = b where A is a triangular banded matrix, and x and b is a vector.
This function solves the triangular banded linear system with a single right - hand - side Op ( A ) x = b where A is a triangular banded matrix and x and b is a vector .
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 .
k
int
number of sub- and super-diagonals of matrix A.
number of sub - and super - diagonals of matrix A .
A
CudaDeviceVariable<double>
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<double>
vector with n elements.
vector with n elements .
incx
int
stride between consecutive elements of x.
stride between consecutive elements of x .