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

rocsolver_sgerq2 Interface Reference

rocsolver_sgerq2 Interface Reference#

HIPFORT API Reference: hipfort_rocsolver::rocsolver_sgerq2 Interface Reference
hipfort_rocsolver::rocsolver_sgerq2 Interface Reference

GERQ2 computes a RQ factorization of a general m-by-n matrix A. More...

Public Member Functions

integer(kind(rocblas_status_success)) function rocsolver_sgerq2_ (handle, m, n, A, lda, ipiv)
 
integer(kind(rocblas_status_success)) function rocsolver_sgerq2_full_rank (handle, m, n, A, lda, ipiv)
 
integer(kind(rocblas_status_success)) function rocsolver_sgerq2_rank_0 (handle, m, n, A, lda, ipiv)
 
integer(kind(rocblas_status_success)) function rocsolver_sgerq2_rank_1 (handle, m, n, A, lda, ipiv)
 

Detailed Description

GERQ2 computes a RQ factorization of a general m-by-n matrix A.

(This is the unblocked version of the algorithm).

The factorization has the form

\[ A = \left[\begin{array}{cc} 0 & R \end{array}\right] Q \]

where R is upper triangular (upper trapezoidal if m > n), and Q is a n-by-n orthogonal/unitary matrix represented as the product of Householder matrices

\[ Q = H_1'H_2' \cdots H_k', \quad \text{with} \: k = \text{min}(m,n). \]

Each Householder matrix \(H_i\) is given by

\[ H_i = I - \text{ipiv}[i] \cdot v_i v_i' \]

where the last n-i elements of the Householder vector \(v_i\) are zero, and \(v_i[i] = 1\).

Parameters
[in]handlerocblas_handle.
[in]mrocblas_int. m >= 0.
The number of rows of the matrix A.
[in]nrocblas_int. n >= 0.
The number of columns of the matrix A.
[in,out]Apointer to type. Array on the GPU of dimension lda*n.
On entry, the m-by-n matrix to be factored. On exit, the elements on and above the (m-n)-th subdiagonal (when m >= n) or the (n-m)-th superdiagonal (when n > m) contain the factor R; the elements below the sub/superdiagonal are the first i - 1 elements of Householder vector v_i.
[in]ldarocblas_int. lda >= m.
Specifies the leading dimension of A.
[out]ipivpointer to type. Array on the GPU of dimension min(m,n).
The Householder scalars.

Member Function/Subroutine Documentation

◆ rocsolver_sgerq2_()

integer(kind(rocblas_status_success)) function hipfort_rocsolver::rocsolver_sgerq2::rocsolver_sgerq2_ ( type(c_ptr), value  handle,
integer(c_int), value  m,
integer(c_int), value  n,
type(c_ptr), value  A,
integer(c_int), value  lda,
type(c_ptr), value  ipiv 
)

◆ rocsolver_sgerq2_full_rank()

integer(kind(rocblas_status_success)) function hipfort_rocsolver::rocsolver_sgerq2::rocsolver_sgerq2_full_rank ( type(c_ptr)  handle,
integer(c_int)  m,
integer(c_int)  n,
real(c_float), dimension(:,:), target  A,
integer(c_int)  lda,
real(c_float), dimension(:), target  ipiv 
)

◆ rocsolver_sgerq2_rank_0()

integer(kind(rocblas_status_success)) function hipfort_rocsolver::rocsolver_sgerq2::rocsolver_sgerq2_rank_0 ( type(c_ptr)  handle,
integer(c_int)  m,
integer(c_int)  n,
real(c_float), target  A,
integer(c_int)  lda,
real(c_float), target  ipiv 
)

◆ rocsolver_sgerq2_rank_1()

integer(kind(rocblas_status_success)) function hipfort_rocsolver::rocsolver_sgerq2::rocsolver_sgerq2_rank_1 ( type(c_ptr)  handle,
integer(c_int)  m,
integer(c_int)  n,
real(c_float), dimension(:), target  A,
integer(c_int)  lda,
real(c_float), dimension(:), target  ipiv 
)

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