?hetrs_aa
?hetrs_aa
B
Solves a system of linear equations A
*X
= with a complex Hermitian matrix.LAPACK_DECL
lapack_int
LAPACKE_chetrs_aa
(
int
matrix_layout
,
char
uplo
,
lapack_int
n
,
lapack_int
nrhs
,
const
lapack_complex_float
*
a
,
lapack_int
lda
,
const
lapack_int
*
ipiv
,
lapack_complex_float
*
b
,
lapack_int
ldb
);
LAPACK_DECL
lapack_int
LAPACKE_zhetrs_aa
(
int
matrix_layout
,
char
uplo
,
lapack_int
n
,
lapack_int
nrhs
,
const
lapack_complex_double
*
a
,
lapack_int
lda
,
const
lapack_int
*
ipiv
,
lapack_complex_double
*
b
,
lapack_int
ldb
);
Description
?hetrs_aa
solves a system of linear equations A
*X
= X
with a complex Hermitian matrix A
using the factorization A
= U
* T
* U
H
or A
= L
* T
* L
H
computed by ?hetrf_aa
. Input Parameters
- matrix_layout
- Specifies whether matrix storage layout is row major (LAPACK_ROW_MAJOR) or column major (LAPACK_COL_MAJOR).
- uplo
- Specifies whether the details of the factorization are stored as an upper or lower triangular matrix.Ifuplo= 'U': Upper triangular of the formA=U*T*UH.Ifuplo= 'L': Lower triangular of the formA=L*T*LH.
- n
- The order of the matrixA.n≥0.
- nrhs
- The number of right hand sides: the number of columns of the matrixb.nrhs≥0.
- a
- Array of size. Details of factors computed bylda*n?hetrf_aa.
- lda
- The leading dimension of the arraya.lda≥max(1,n).
- ipiv
- Array of size (n). Details of the interchanges as computed by?hetrf_aa.
- b
- Array of size. On entry, the right hand side matrixldb*nrhsB.
- ldb
- The leading dimension of the arrayb.ldb≥max(1,n).
- work
- See Syntax - Workspace.Array of size (max(1,lwork)).
- lwork
Output Parameters
- b
- On exit, the solution matrixX.
Return Values
This function returns a value
info
.If
info
= 0: successful exit. If
info
< 0: if info
= -i
, the i
-th argument had an illegal value. Syntax - Workspace
Use this interface if you want to explicitly provide the workspace array.
LAPACK_DECL
lapack_int
LAPACKE_chetrs_aa_work
(
int
matrix_layout
,
char
uplo
,
lapack_int
n
,
lapack_int
nrhs
,
const
lapack_complex_float
*
a
,
lapack_int
lda
,
const
lapack_int
*
ipiv
,
lapack_complex_float
*
b
,
lapack_int
ldb
,
lapack_complex_float
*
work
,
lapack_int
lwork
);
LAPACK_DECL
lapack_int
LAPACKE_zhetrs_aa_work
(
int
matrix_layout
,
char
uplo
,
lapack_int
n
,
lapack_int
nrhs
,
const
lapack_complex_double
*
a
,
lapack_int
lda
,
const
lapack_int
*
ipiv
,
lapack_complex_double
*
b
,
lapack_int
ldb
,
lapack_complex_double
*
work
,
lapack_int
lwork
);