SRC/ctrttp.f(3)
π NAME π
okay bestie, this is SRC/ctrttp.f β yes, that's the page name β and it's chillin' in the Library Functions Manual. The star of the show is ctrttp, a subroutine that literally copies a triangular matrix from full format (TR) to packed format (TP). iconic behavior, no cap. π
β¨ SYNOPSIS β¨
πΈ Functions/Subroutines πΈ
subroutine ctrttp (uplo, n, a, lda, ap, info)βCTRTTPcopies a triangular matrix from the standard full format (TR) to the standard packed format (TP). slay.
π οΈ Function/Subroutine Documentation π οΈ
subroutine ctrttp (character uplo, integer n, complex, dimension( lda, * ) a, integer lda, complex, dimension( * ) ap, integer info)
CTRTTP copies a triangular matrix from the standard full format (TR) to the standard packed format (TP). fr fr, that's the whole plot. π¦
π― Purpose
CTRTTP copies a triangular matrix A from full format (TR) to standard packed format (TP). β¨
π Parameters π
UPLOβUPLOisCHARACTER*1.= 'U':Ais upper triangular;= 'L':Ais lower triangular. choose your vibe. π«NβNisINTEGER; it's the order of the matricesAPandA.N >= 0. no negative nonsense, bestie.AβAisCOMPLEXarray, dimension(LDA,N). On entry, it's the triangular matrixA. IfUPLO = 'U', the leadingN-by-Nupper triangular part ofAcontains the upper triangular part of the matrixA, and the strictly lower triangular part ofAis not referenced. IfUPLO = 'L', the leadingN-by-Nlower triangular part ofAcontains the lower triangular part of the matrixA, and the strictly upper triangular part ofAis not referenced. read the room, lower/upper. πLDAβLDAisINTEGER; it's the leading dimension of the arrayA.LDA >= max(1,N). periodt.APβAPisCOMPLEXarray, dimension( N*(N+1)/2 ). On exit, it holds the upper or lower triangular matrixA, packed columnwise in a linear array. Thej-th column ofAis stored in the arrayAPas 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.
that formula is giving main character energy, honestly. π§
INFOβINFOisINTEGER.= 0: successful exit;< 0: ifINFO = -i, thei-th argument had an illegal value. π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 103 of file ctrttp.f. π
π Author π
Generated automatically by Doxygen for LAPACK from the source code. yes bestie, the robots wrote the paperwork. π€β¨
and that's the page, bestie β LAPACK Version 3.12.0, SRC/ctrttp.f(3), mwah π
π
π¦ where this page comes from
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms