rocsolver_sposv_batched Interface Reference#
hipfort_rocsolver::rocsolver_sposv_batched Interface Reference
The POSV_BATCHED functions solve a batch of symmetric/Hermitian systems of n linear equations on n variables.
More...
Public Member Functions | |
| integer(kind(rocblas_status_success)) function | rocsolver_sposv_batched_ (handle, uplo, n, nrhs, a, lda, b, ldb, myinfo, batch_count) |
Detailed Description
The POSV_BATCHED functions solve a batch of symmetric/Hermitian systems of n linear equations on n variables.
For each instance l in the batch, it solves the system
\[ A_l X_l = B_l \]
where \(A_l\) is a real symmetric (complex Hermitian) positive definite matrix. Matrix \(A_l\) is first factorized as \(A_l^{}=L_l^{}L_l^H\) or \(A_l^{}=U_l^H U_l^{}\), depending on the value of uplo, using POTRF_BATCHED, then the solution is computed with POTRS_BATCHED.
- Parameters
-
[in] handle - rocblas_handle. [in] uplo - rocblas_fill. Specifies whether the factorization is upper or lower triangular. If uplo indicates lower (or upper), then the upper (or lower) part of A_l is not used. [in] n - rocblas_int. n >= 0. The order of the system, that is, the number of columns and rows of all A_l matrices. [in] nrhs - rocblas_int. nrhs >= 0. The number of right hand sides, that is, the number of columns of all the matrices B_l. [in,out] A - Array of pointers to type. Each pointer points to an array on the GPU of dimension lda*n. On entry, the symmetric/Hermitian matrices A_l. On exit, if info[l] = 0, the factor L_l or U_l of the Cholesky factorization of A_l returned by POTRF_BATCHED. [in] lda - rocblas_int. lda >= n. The leading dimension of matrices A_l. [in,out] B - Array of pointers to type. Each pointer points to an array on the GPU of dimension ldb*nrhs. On entry, the right hand side matrices B_l. On exit, the solution matrix X_l of each system in the batch. [in] ldb - rocblas_int. ldb >= n. The leading dimension of matrices B_l. [out] myInfo - pointer to rocblas_int. Array of batch_count integers on the GPU. If info[l] = 0, successful exit. If info[l] = i > 0, the leading minor of order i of A_l is not positive definite. The l-th solution could not be computed. [in] batch_count - rocblas_int. batch_count >= 0. Number of instances (systems) in the batch.
Member Function/Subroutine Documentation
◆ rocsolver_sposv_batched_()
| integer(kind(rocblas_status_success)) function hipfort_rocsolver::rocsolver_sposv_batched::rocsolver_sposv_batched_ | ( | type(c_ptr), value | handle, |
| integer(kind(rocblas_fill_upper)), value | uplo, | ||
| integer(c_int), value | n, | ||
| integer(c_int), value | nrhs, | ||
| type(c_ptr), value | a, | ||
| integer(c_int), value | lda, | ||
| type(c_ptr), value | b, | ||
| integer(c_int), value | ldb, | ||
| type(c_ptr), value | myinfo, | ||
| integer(c_int), value | batch_count | ||
| ) |
The documentation for this interface was generated from the following file: