Intel® oneAPI Math Kernel Library Developer Reference - C
Solves a system of linear equations A * X = B with a complex Hermitian matrix using the factorization computed by ?hetrf_rk.
lapack_int LAPACKE_chetrs_3 (int matrix_layout, char uplo, lapack_int n, lapack_int nrhs, const lapack_complex_float * A, lapack_int lda, const lapack_complex_float * e, const lapack_int * ipiv, lapack_complex_float * B, lapack_int ldb);
lapack_int LAPACKE_zhetrs_3 (int matrix_layout, char uplo, lapack_int n, lapack_int nrhs, const lapack_complex_double * A, lapack_int lda, const lapack_complex_double * e, const lapack_int * ipiv, lapack_complex_double * B, lapack_int ldb);
?hetrs_3 solves a system of linear equations A * X = B with a complex Hermitian matrix A using the factorization computed by ?hetrf_rk: A = P*U*D*(UH)*(PT) or A = P*L*D*(LH)*(PT), where U (or L) is unit upper (or lower) triangular matrix, UH (or LH) is the conjugate of U (or L), P is a permutation matrix, PT is the transpose of P, and D is a Hermitian and block diagonal with 1-by-1 and 2-by-2 diagonal blocks.
This algorithm uses Level 3 BLAS.
Specifies whether matrix storage layout is row major (LAPACK_ROW_MAJOR) or column major (LAPACK_COL_MAJOR).
Specifies whether the details of the factorization are stored as an upper or lower triangular matrix:
The order of the matrix A. n ≥ 0.
The number of right-hand sides; that is, the number of columns in the matrix B. nrhs ≥ 0.
Array of size max(1, lda*n). Diagonal of the block diagonal matrix D and factor U or L as computed by ?hetrf_rk:
The leading dimension of the array A.
Array of size n. On entry, contains the superdiagonal (or subdiagonal) elements of the Hermitian block diagonal matrix D with 1-by-1 or 2-by-2 diagonal blocks. If uplo = 'U', e(i) = D(i-1,i),i=2:N, and e(1) is not referenced. If uplo = 'L', e(i) = D(i+1,i),i=1:N-1, and e(n) is not referenced.
Array of size (n. Details of the interchanges and the block structure of D as determined by ?hetrf_rk.
On entry, the right-hand side matrix B.
The size of B is at least max(1, ldb*nrhs) for column-major layout and max(1, ldb*n) for row-major layout.
The leading dimension of the array B. ldb ≥ max(1, n) for column-major layout and ldb ≥ nrhs for row-major layout.
On exit, the solution matrix X.
This function returns a value info.
= 0: Successful exit.
< 0: If info = -i, the ith argument had an illegal value.