rocsolver_sgetri_batched Interface Reference

rocsolver_sgetri_batched Interface Reference#

HIPFORT API Reference: hipfort_rocsolver::rocsolver_sgetri_batched Interface Reference
hipfort_rocsolver::rocsolver_sgetri_batched Interface Reference

The GETRI_BATCHED functions invert a batch of general n-by-n matrices using the LU factorization computed by GETRF_BATCHED. More...

Public Member Functions

integer(kind(rocblas_status_success)) function rocsolver_sgetri_batched_ (handle, n, a, lda, ipiv, stridep, myinfo, batch_count)
 
integer(kind(rocblas_status_success)) function rocsolver_sgetri_batched_rank_0 (handle, n, a, lda, ipiv, stridep, myinfo, batch_count)
 
integer(kind(rocblas_status_success)) function rocsolver_sgetri_batched_rank_1 (handle, n, a, lda, ipiv, stridep, myinfo, batch_count)
 

Detailed Description

The GETRI_BATCHED functions invert a batch of general n-by-n matrices using the LU factorization computed by GETRF_BATCHED.

The inverse of matrix \(A_l\) in the batch is computed by solving the linear system

\[ A_l^{-1} L_l^{} = U_l^{-1} \]

where \(L_l\) is the lower triangular factor of \(A_l\) with unit diagonal elements, and \(U_l\) is the upper triangular factor.

Parameters
[in]handle- rocblas_handle.
[in]n- rocblas_int. n >= 0. The number of rows and columns of all matrices A_l in the batch.
[in,out]A- array of pointers to type. Each pointer points to an array on the GPU of dimension lda*n. On entry, the factors L_l and U_l of the factorization A_l = P_l*L_l*U_l returned by GETRF_BATCHED. On exit, the inverses of A_l if info[l] = 0, and otherwise undefined.
[in]lda- rocblas_int. lda >= n. Specifies the leading dimension of matrices A_l.
[in]ipiv- pointer to rocblas_int. Array on the GPU (the size depends on the value of strideP). The pivot indices returned by GETRF_BATCHED.
[in]strideP- rocblas_stride. Stride from the start of one vector ipiv_l to the next one ipiv_(l+j). There is no restriction for the value of strideP. The normal use case is strideP >= n.
[out]myInfo- pointer to rocblas_int. Array of batch_count integers on the GPU. If info[l] = 0, successful exit for inversion of A_l. If info[l] = i > 0, U_l is singular. U_l[i,i] is the first zero pivot.
[in]batch_count- rocblas_int. batch_count >= 0. Number of matrices in the batch.

Member Function/Subroutine Documentation

◆ rocsolver_sgetri_batched_()

integer(kind(rocblas_status_success)) function hipfort_rocsolver::rocsolver_sgetri_batched::rocsolver_sgetri_batched_ ( type(c_ptr), value  handle,
integer(c_int), value  n,
type(c_ptr), value  a,
integer(c_int), value  lda,
type(c_ptr), value  ipiv,
integer(c_int64_t), value  stridep,
type(c_ptr), value  myinfo,
integer(c_int), value  batch_count 
)

◆ rocsolver_sgetri_batched_rank_0()

integer(kind(rocblas_status_success)) function hipfort_rocsolver::rocsolver_sgetri_batched::rocsolver_sgetri_batched_rank_0 ( type(c_ptr)  handle,
integer(c_int)  n,
type(c_ptr)  a,
integer(c_int)  lda,
integer(c_int), target  ipiv,
integer(c_int64_t)  stridep,
type(c_ptr)  myinfo,
integer(c_int)  batch_count 
)

◆ rocsolver_sgetri_batched_rank_1()

integer(kind(rocblas_status_success)) function hipfort_rocsolver::rocsolver_sgetri_batched::rocsolver_sgetri_batched_rank_1 ( type(c_ptr)  handle,
integer(c_int)  n,
type(c_ptr)  a,
integer(c_int)  lda,
integer(c_int), dimension(:), target  ipiv,
integer(c_int64_t)  stridep,
type(c_ptr)  myinfo,
integer(c_int)  batch_count 
)

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