trttp#

Functions

void strttp(
    const char*          uplo,
    const INT            n,
    const f32*  restrict A,
    const INT            lda,
          f32*  restrict AP,
          INT*           info
);
void strttp(const char *uplo, const INT n, const f32 *restrict A, const INT lda, f32 *restrict AP, INT *info)#

STRTTP copies a triangular matrix A from full format (TR) to standard packed format (TP).

Parameters

in
uplo

= ‘U’: A is upper triangular. = ‘L’: A is lower triangular.

in
n

The order of the matrices AP and A. n >= 0.

in
A

Double precision array, dimension (lda,n) On exit, the triangular matrix A. If UPLO = ‘U’, the leading n-by-n upper triangular part of A contains the upper triangular part of the matrix A, and the strictly lower triangular part of A is not referenced. If UPLO = ‘L’, the leading n-by-n lower triangular part of A contains the lower triangular part of the matrix A, and the strictly upper triangular part of A is not referenced.

in
lda

The leading dimension of the array A. lda >= max(1,n).

out
AP

Double precision array, dimension (n*(n+1)/2) On exit, the upper or lower triangular matrix A, packed columnwise in a linear array. The j-th column of A is stored in the array AP as follows: if UPLO = ‘U’, AP(i + (j-1)*j/2) = A(i,j) for 1<=i<=j; if UPLO = ‘L’, AP(i + (j-1)*(2n-j)/2) = A(i,j) for j<=i<=n.

out
info

  • = 0: successful exit

  • < 0: if info = -i, the i-th argument had an illegal value

Functions

void dtrttp(
    const char*          uplo,
    const INT            n,
    const f64*  restrict A,
    const INT            lda,
          f64*  restrict AP,
          INT*           info
);
void dtrttp(const char *uplo, const INT n, const f64 *restrict A, const INT lda, f64 *restrict AP, INT *info)#

DTRTTP copies a triangular matrix A from full format (TR) to standard packed format (TP).

Parameters

in
uplo

= ‘U’: A is upper triangular. = ‘L’: A is lower triangular.

in
n

The order of the matrices AP and A. n >= 0.

in
A

Double precision array, dimension (lda,n) On exit, the triangular matrix A. If UPLO = ‘U’, the leading n-by-n upper triangular part of A contains the upper triangular part of the matrix A, and the strictly lower triangular part of A is not referenced. If UPLO = ‘L’, the leading n-by-n lower triangular part of A contains the lower triangular part of the matrix A, and the strictly upper triangular part of A is not referenced.

in
lda

The leading dimension of the array A. lda >= max(1,n).

out
AP

Double precision array, dimension (n*(n+1)/2) On exit, the upper or lower triangular matrix A, packed columnwise in a linear array. The j-th column of A is stored in the array AP as follows: if UPLO = ‘U’, AP(i + (j-1)*j/2) = A(i,j) for 1<=i<=j; if UPLO = ‘L’, AP(i + (j-1)*(2n-j)/2) = A(i,j) for j<=i<=n.

out
info

  • = 0: successful exit

  • < 0: if info = -i, the i-th argument had an illegal value

Functions

void ctrttp(
    const char*          uplo,
    const INT            n,
    const c64*  restrict A,
    const INT            lda,
          c64*  restrict AP,
          INT*           info
);
void ctrttp(const char *uplo, const INT n, const c64 *restrict A, const INT lda, c64 *restrict AP, INT *info)#

CTRTTP copies a triangular matrix A from full format (TR) to standard packed format (TP).

Parameters

in
uplo

= ‘U’: A is upper triangular. = ‘L’: A is lower triangular.

in
n

The order of the matrices AP and A. n >= 0.

in
A

Single complex array, dimension (lda,n) On exit, the triangular matrix A. If UPLO = ‘U’, the leading n-by-n upper triangular part of A contains the upper triangular part of the matrix A, and the strictly lower triangular part of A is not referenced. If UPLO = ‘L’, the leading n-by-n lower triangular part of A contains the lower triangular part of the matrix A, and the strictly upper triangular part of A is not referenced.

in
lda

The leading dimension of the array A. lda >= max(1,n).

out
AP

Single complex array, dimension (n*(n+1)/2) On exit, the upper or lower triangular matrix A, packed columnwise in a linear array. The j-th column of A is stored in the array AP as follows: if UPLO = ‘U’, AP(i + (j-1)*j/2) = A(i,j) for 1<=i<=j; if UPLO = ‘L’, AP(i + (j-1)*(2n-j)/2) = A(i,j) for j<=i<=n.

out
info

  • = 0: successful exit

  • < 0: if info = -i, the i-th argument had an illegal value

Functions

void ztrttp(
    const char*          uplo,
    const INT            n,
    const c128* restrict A,
    const INT            lda,
          c128* restrict AP,
          INT*           info
);
void ztrttp(const char *uplo, const INT n, const c128 *restrict A, const INT lda, c128 *restrict AP, INT *info)#

ZTRTTP copies a triangular matrix A from full format (TR) to standard packed format (TP).

Parameters

in
uplo

= ‘U’: A is upper triangular. = ‘L’: A is lower triangular.

in
n

The order of the matrices AP and A. n >= 0.

in
A

Double complex array, dimension (lda,n) On exit, the triangular matrix A. If UPLO = ‘U’, the leading n-by-n upper triangular part of A contains the upper triangular part of the matrix A, and the strictly lower triangular part of A is not referenced. If UPLO = ‘L’, the leading n-by-n lower triangular part of A contains the lower triangular part of the matrix A, and the strictly upper triangular part of A is not referenced.

in
lda

The leading dimension of the array A. lda >= max(1,n).

out
AP

Double complex array, dimension (n*(n+1)/2) On exit, the upper or lower triangular matrix A, packed columnwise in a linear array. The j-th column of A is stored in the array AP as follows: if UPLO = ‘U’, AP(i + (j-1)*j/2) = A(i,j) for 1<=i<=j; if UPLO = ‘L’, AP(i + (j-1)*(2n-j)/2) = A(i,j) for j<=i<=n.

out
info

  • = 0: successful exit

  • < 0: if info = -i, the i-th argument had an illegal value