rocsolver_sgeqr2_batched Interface Reference

rocsolver_sgeqr2_batched Interface Reference#

HIPFORT API Reference: hipfort_rocsolver::rocsolver_sgeqr2_batched Interface Reference
hipfort_rocsolver::rocsolver_sgeqr2_batched Interface Reference

GEQR2_BATCHED computes the QR factorization of a batch of general m-by-n matrices. More...

Public Member Functions

integer(kind(rocblas_status_success)) function rocsolver_sgeqr2_batched_ (handle, m, n, A, lda, ipiv, strideP, batch_count)
 
integer(kind(rocblas_status_success)) function rocsolver_sgeqr2_batched_full_rank (handle, m, n, A, lda, ipiv, strideP, batch_count)
 
integer(kind(rocblas_status_success)) function rocsolver_sgeqr2_batched_rank_0 (handle, m, n, A, lda, ipiv, strideP, batch_count)
 
integer(kind(rocblas_status_success)) function rocsolver_sgeqr2_batched_rank_1 (handle, m, n, A, lda, ipiv, strideP, batch_count)
 

Detailed Description

GEQR2_BATCHED computes the QR factorization of a batch of general m-by-n matrices.

(This is the unblocked version of the algorithm).

The factorization of matrix \(A_j\) in the batch has the form

\[ A_j = Q_j\left[\begin{array}{c} R_j\newline 0 \end{array}\right] \]

where \(R_j\) is upper triangular (upper trapezoidal if m < n), and \(Q_j\) is a m-by-m orthogonal/unitary matrix represented as the product of Householder matrices

\[ Q_j = H_{j_1}H_{j_2}\cdots H_{j_k}, \quad \text{with} \: k = \text{min}(m,n) \]

Each Householder matrix \(H_{j_i}\) is given by

\[ H_{j_i} = I - \text{ipiv}_j[i] \cdot v_{j_i} v_{j_i}' \]

where the first i-1 elements of Householder vector \(v_{j_i}\) are zero, and \(v_{j_i}[i] = 1\).

Parameters
[in]handlerocblas_handle.
[in]mrocblas_int. m >= 0.
The number of rows of all the matrices A_j in the batch.
[in]nrocblas_int. n >= 0.
The number of columns of all the matrices A_j in the batch.
[in,out]AArray of pointers to type. Each pointer points to an array on the GPU of dimension lda*n.
On entry, the m-by-n matrices A_j to be factored. On exit, the elements on and above the diagonal contain the factor R_j. The elements below the diagonal are the last m - i elements of Householder vector v_(j_i).
[in]ldarocblas_int. lda >= m.
Specifies the leading dimension of matrices A_j.
[out]ipivpointer to type. Array on the GPU (the size depends on the value of strideP).
Contains the vectors ipiv_j of corresponding Householder scalars.
[in]strideProcblas_stride.
Stride from the start of one vector ipiv_j to the next one ipiv_(j+1). There is no restriction for the value of strideP. Normal use is strideP >= min(m,n).
[in]batch_countrocblas_int. batch_count >= 0.
Number of matrices in the batch.

Member Function/Subroutine Documentation

◆ rocsolver_sgeqr2_batched_()

integer(kind(rocblas_status_success)) function hipfort_rocsolver::rocsolver_sgeqr2_batched::rocsolver_sgeqr2_batched_ ( type(c_ptr), value  handle,
integer(c_int), value  m,
integer(c_int), value  n,
type(c_ptr)  A,
integer(c_int), value  lda,
type(c_ptr), value  ipiv,
integer(c_int64_t), value  strideP,
integer(c_int), value  batch_count 
)

◆ rocsolver_sgeqr2_batched_full_rank()

integer(kind(rocblas_status_success)) function hipfort_rocsolver::rocsolver_sgeqr2_batched::rocsolver_sgeqr2_batched_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,
integer(c_int64_t)  strideP,
integer(c_int)  batch_count 
)

◆ rocsolver_sgeqr2_batched_rank_0()

integer(kind(rocblas_status_success)) function hipfort_rocsolver::rocsolver_sgeqr2_batched::rocsolver_sgeqr2_batched_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,
integer(c_int64_t)  strideP,
integer(c_int)  batch_count 
)

◆ rocsolver_sgeqr2_batched_rank_1()

integer(kind(rocblas_status_success)) function hipfort_rocsolver::rocsolver_sgeqr2_batched::rocsolver_sgeqr2_batched_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,
integer(c_int64_t)  strideP,
integer(c_int)  batch_count 
)

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