?trttp
?trttp
Copies a triangular matrix from the standard full
format (TR)
to the standard packed
format (TP)
.
Syntax
lapack_int
LAPACKE_strttp
(
int
matrix_layout
,
char
uplo
,
lapack_int
n
,
const
float
*
a
,
lapack_int
lda
,
float
*
ap
);
lapack_int
LAPACKE_dtrttp
(
int
matrix_layout
,
char
uplo
,
lapack_int
n
,
const
double
*
a
,
lapack_int
lda
,
double
*
ap
);
lapack_int
LAPACKE_ctrttp
(
int
matrix_layout
,
char
uplo
,
lapack_int
n
,
const
lapack_complex_float
*
a
,
lapack_int
lda
,
lapack_complex_float
*
ap
);
lapack_int
LAPACKE_ztrttp
(
int
matrix_layout
,
char
uplo
,
lapack_int
n
,
const
lapack_complex_double
*
a
,
lapack_int
lda
,
lapack_complex_double
*
ap
);
Include Files
- mkl.h
Description
The routine copies a triangular matrix
A
from the standard full
format
to the standard
packed
format. Input Parameters
- uplo
- Specifies whetherAis upper or lower triangular:= 'U': A is upper triangular,= 'L': A is lower triangular.
- n
- The order of the matrixA,n≥0.
- a
- Array, sizemax(1,.lda*n)On entry, the triangular matrixA. Ifuplo= 'U', the leadingn-by-nupper triangular part of the arrayacontains the upper triangular matrix, and the strictly lower triangular part ofais not referenced. Ifuplo= 'L', the leadingn-by-nlower triangular part of the arrayacontains the lower triangular matrix, and the strictly upper triangular part ofais not referenced.
- lda
- The leading dimension of the arraya.lda≥max(1,n).
Output Parameters
- ap
- Array, size at leastmax(1,n*(n+1)/2).On exit, the upper or lower triangular matrixA, packed columnwise in a linear array. (see Matrix Storage Schemes)
Return Values
This function returns a value
info
.If , the execution is successful.
info
= 0If , the
info
< 0i
-th parameter had an illegal value.If , memory allocation error occurred.
info
= -1011