?tpttr
?tpttr
Copies a triangular matrix from the standard packed format (TP) to the standard full format (TR)
.
Syntax
lapack_int
LAPACKE_stpttr
(
int
matrix_layout
,
char
uplo
,
lapack_int
n
,
const
float
*
ap
,
float
*
a
,
lapack_int
lda
);
lapack_int
LAPACKE_dtpttr
(
int
matrix_layout
,
char
uplo
,
lapack_int
n
,
const
double
*
ap
,
double
*
a
,
lapack_int
lda
);
lapack_int
LAPACKE_ctpttr
(
int
matrix_layout
,
char
uplo
,
lapack_int
n
,
const
lapack_complex_float
*
ap
,
lapack_complex_float
*
a
,
lapack_int
lda
);
lapack_int
LAPACKE_ztpttr
(
int
matrix_layout
,
char
uplo
,
lapack_int
n
,
const
lapack_complex_double
*
ap
,
lapack_complex_double
*
a
,
lapack_int
lda
);
Include Files
- mkl.h
Description
The routine copies a triangular matrix
A
from the standard
packed
format
to the standard full format. Input Parameters
- matrix_layout
- Specifies whether matrix storage layout is row major (LAPACK_ROW_MAJOR) or column major (LAPACK_COL_MAJOR).
- uplo
- Specifies whetherAis upper or lower triangular:= 'U': A is upper triangular,= 'L': A is lower triangular.
- n
- The order of the matricesapanda..n≥0
- ap
- lda
- The leading dimension of the arraya.lda≥max(1,n).
Output Parameters
- a
- Array, sizemax(1,.lda*n)On exit, the triangular matrixA. Ifuplo= 'U', the leadingn-by-nupper triangular part of the arrayacontains the upper triangular part of the matrixA, and the strictly lower triangular part ofais not referenced. Ifuplo= 'L', the leadingn-by-nlower triangular part of the arrayacontains the lower triangular part of the matrixA, and the strictly upper triangular part ofais not referenced.
Return Values
This function returns a value
info
.If , the execution is successful.
info
= 0If , the
info
= -i
i
-th parameter had an illegal value.If , memory allocation error occurred.
info
= -1011