This page contains proposed changes for a future release of ROCm. Read the latest Linux release of ROCm documentation for your production environments.

rocsolver_sgetrs Interface Reference

rocsolver_sgetrs Interface Reference#

HIPFORT API Reference: hipfort_rocsolver::rocsolver_sgetrs Interface Reference
hipfort_rocsolver::rocsolver_sgetrs Interface Reference

GETRS solves a system of n linear equations on n variables in its factorized form. More...

Public Member Functions

integer(kind(rocblas_status_success)) function rocsolver_sgetrs_ (handle, trans, n, nrhs, A, lda, ipiv, B, ldb)
 
integer(kind(rocblas_status_success)) function rocsolver_sgetrs_full_rank (handle, trans, n, nrhs, A, lda, ipiv, B, ldb)
 
integer(kind(rocblas_status_success)) function rocsolver_sgetrs_rank_0 (handle, trans, n, nrhs, A, lda, ipiv, B, ldb)
 
integer(kind(rocblas_status_success)) function rocsolver_sgetrs_rank_1 (handle, trans, n, nrhs, A, lda, ipiv, B, ldb)
 

Detailed Description

GETRS solves a system of n linear equations on n variables in its factorized form.

It solves one of the following systems, depending on the value of trans:

\[ \begin{array}{cl} A X = B & \: \text{not transposed,}\newline A^T X = B & \: \text{transposed, or}\newline A^H X = B & \: \text{conjugate transposed.} \end{array} \]

Matrix A is defined by its triangular factors as returned by GETRF.

Parameters
[in]handlerocblas_handle.
[in]transrocblas_operation.
Specifies the form of the system of equations.
[in]nrocblas_int. n >= 0.
The order of the system, i.e. the number of columns and rows of A.
[in]nrhsrocblas_int. nrhs >= 0.
The number of right hand sides, i.e., the number of columns of the matrix B.
[in]Apointer to type. Array on the GPU of dimension lda*n.
The factors L and U of the factorization A = P*L*U returned by GETRF.
[in]ldarocblas_int. lda >= n.
The leading dimension of A.
[in]ipivpointer to rocblas_int. Array on the GPU of dimension n.
The pivot indices returned by GETRF.
[in,out]Bpointer 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]ldbrocblas_int. ldb >= n.
The leading dimension of B.

Member Function/Subroutine Documentation

◆ rocsolver_sgetrs_()

integer(kind(rocblas_status_success)) function hipfort_rocsolver::rocsolver_sgetrs::rocsolver_sgetrs_ ( type(c_ptr), value  handle,
integer(kind(rocblas_operation_none)), value  trans,
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 
)

◆ rocsolver_sgetrs_full_rank()

integer(kind(rocblas_status_success)) function hipfort_rocsolver::rocsolver_sgetrs::rocsolver_sgetrs_full_rank ( type(c_ptr)  handle,
integer(kind(rocblas_operation_none))  trans,
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 
)

◆ rocsolver_sgetrs_rank_0()

integer(kind(rocblas_status_success)) function hipfort_rocsolver::rocsolver_sgetrs::rocsolver_sgetrs_rank_0 ( type(c_ptr)  handle,
integer(kind(rocblas_operation_none))  trans,
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 
)

◆ rocsolver_sgetrs_rank_1()

integer(kind(rocblas_status_success)) function hipfort_rocsolver::rocsolver_sgetrs::rocsolver_sgetrs_rank_1 ( type(c_ptr)  handle,
integer(kind(rocblas_operation_none))  trans,
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 
)

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