CTRTTP(3)

πŸ“¦ version 3.12.0, in opensuse-leap 16.0

πŸ¦‹ CTRTTP(3) β€” like, the Library Functions Manual bestie πŸ¦‹

okay so this is a page from the Library Functions Manual, and the file it lives in is literally:

/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/ctrttp.f

no cap, that's the whole path πŸ’…


✨ NAME ✨

/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/ctrttp.f


🌸 SYNOPSIS 🌸

Functions/Subroutines

  • subroutine CTRTTP (uplo, n, a, lda, ap, info) β€” CTRTTP copies 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). that's it, that's the whole gig 🫢

πŸ’– Purpose: πŸ’–

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

literally just repackaging your triangle, iconic behaviour honestly 🧚

🌈 Parameters 🌈

  • UPLO β€” bestie, this is CHARACTER*1:
!>          UPLO is CHARACTER*1
!>          = 'U':  A is upper triangular;
!>          = 'L':  A is lower triangular.
!>
  • N β€” this one's an INTEGER:
!>          N is INTEGER
!>          The order of the matrices AP and A.  N >= 0.
!>
  • A β€” a COMPLEX array, dimension (LDA,N). here's the tea:
!>          A is COMPLEX array, dimension (LDA,N)
!>          On entry, 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.
!>

like, only the triangle that matters gets read, the other half is giving background extra energy πŸ’€

  • LDA β€” INTEGER, the leading dimension of the array A:
!>          LDA is INTEGER
!>          The leading dimension of the array A.  LDA >= max(1,N).
!>
  • AP β€” COMPLEX array, dimension ( N*(N+1)/2 ). this is the glow-up destination ✨:
!>          AP is 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.
!>

those index formulas are the main character of this whole page, fr fr πŸ”₯

  • INFO β€” INTEGER, the vibe check at the end:
!>          INFO is INTEGER
!>          = 0:  successful exit
!>          < 0:  if INFO = -i, the i-th argument had an illegal value
!>

so 0 means we ate and left no crumbs, and any negative means argument number i was being messy πŸ™ˆ

πŸ‘‘ Author πŸ‘‘

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

Definition at line 103 of file ctrttp.f. iykyk πŸ“


⭐ Author ⭐

Generated automatically by Doxygen for LAPACK from the source code. not a human, just a very diligent little robot πŸŽ€


lowkey reminder bestie: LDA >= max(1,N) is not a suggestion, the routine will absolutely notice if you play yourself πŸ’…

okay bye ily, this page was brought to you by LAPACK, Version 3.12.0, living at /home/abui...RC/ctrttp.f(3) β€” mwah, go pack a triangle πŸ¦‹πŸ’–πŸŒΈ

πŸ“¦ where this page comes from