rocsolver_sgesv Interface Reference

rocsolver_sgesv Interface Reference#

HIPFORT API Reference: hipfort_rocsolver::rocsolver_sgesv Interface Reference
hipfort_rocsolver::rocsolver_sgesv Interface Reference

The GESV functions solve a general system of n linear equations on n variables. More...

Public Member Functions

integer(kind(rocblas_status_success)) function rocsolver_sgesv_ (handle, n, nrhs, a, lda, ipiv, b, ldb, myinfo)
 
integer(kind(rocblas_status_success)) function rocsolver_sgesv_rank_0 (handle, n, nrhs, a, lda, ipiv, b, ldb, myinfo)
 
integer(kind(rocblas_status_success)) function rocsolver_sgesv_rank_1 (handle, n, nrhs, a, lda, ipiv, b, ldb, myinfo)
 
integer(kind(rocblas_status_success)) function rocsolver_sgesv_full_rank (handle, n, nrhs, a, lda, ipiv, b, ldb, myinfo)
 

Detailed Description

The GESV functions solve a general system of n linear equations on n variables.

The linear system is of the form

\[ A X = B \]

where A is a general n -by-nmatrix. Matrix A is first factorized in triangular factors L and U using GETRF, then the solution is computed with GETRS.

Parameters
[in]handle- rocblas_handle.
[in]n- rocblas_int. n >= 0. The order of the system, that is, the number of columns and rows of A.
[in]nrhs- rocblas_int. nrhs >= 0. The number of right hand sides, that is, the number of columns of the matrix B.
[in,out]A- pointer to type. Array on the GPU of dimension lda*n. On entry, the matrix A. On exit, if info = 0, the factors L and U of the LU decomposition of A returned by GETRF.
[in]lda- rocblas_int. lda >= n. The leading dimension of A.
[out]ipiv- pointer to rocblas_int. Array on the GPU of dimension n. The pivot indices returned by GETRF.
[in,out]B- pointer to type. Array on the GPU of dimension ldb*nrhs. On entry, the right hand side matrix B. On exit, the solution matrix X.
[in]ldb- rocblas_int. ldb >= n. The leading dimension of B.
[out]myInfo- pointer to a rocblas_int on the GPU. If info = 0, successful exit. If info = i > 0, U is singular, and the solution could not be computed. U[i,i] is the first zero element in the diagonal.

Member Function/Subroutine Documentation

◆ rocsolver_sgesv_()

integer(kind(rocblas_status_success)) function hipfort_rocsolver::rocsolver_sgesv::rocsolver_sgesv_ ( type(c_ptr), value  handle,
integer(c_int), value  n,
integer(c_int), value  nrhs,
type(c_ptr), value  a,
integer(c_int), value  lda,
type(c_ptr), value  ipiv,
type(c_ptr), value  b,
integer(c_int), value  ldb,
type(c_ptr), value  myinfo 
)

◆ rocsolver_sgesv_full_rank()

integer(kind(rocblas_status_success)) function hipfort_rocsolver::rocsolver_sgesv::rocsolver_sgesv_full_rank ( type(c_ptr)  handle,
integer(c_int)  n,
integer(c_int)  nrhs,
real(c_float), dimension(:,:), target  a,
integer(c_int)  lda,
integer(c_int), dimension(:), target  ipiv,
real(c_float), dimension(:,:), target  b,
integer(c_int)  ldb,
type(c_ptr)  myinfo 
)

◆ rocsolver_sgesv_rank_0()

integer(kind(rocblas_status_success)) function hipfort_rocsolver::rocsolver_sgesv::rocsolver_sgesv_rank_0 ( type(c_ptr)  handle,
integer(c_int)  n,
integer(c_int)  nrhs,
real(c_float), target  a,
integer(c_int)  lda,
integer(c_int), target  ipiv,
real(c_float), target  b,
integer(c_int)  ldb,
type(c_ptr)  myinfo 
)

◆ rocsolver_sgesv_rank_1()

integer(kind(rocblas_status_success)) function hipfort_rocsolver::rocsolver_sgesv::rocsolver_sgesv_rank_1 ( type(c_ptr)  handle,
integer(c_int)  n,
integer(c_int)  nrhs,
real(c_float), dimension(:), target  a,
integer(c_int)  lda,
integer(c_int), dimension(:), target  ipiv,
real(c_float), dimension(:), target  b,
integer(c_int)  ldb,
type(c_ptr)  myinfo 
)

The documentation for this interface was generated from the following file: