SSPGST(3)
π SSPGST(3) β like, the LAPACK Library Functions Manual page, bestie β¨
okay so first things first: this is a page straight outta the LAPACK Library Functions Manual (that's the manual name, mwah π) and it's all about one very specific little Fortran file, namely:
/home/abuild/rpmbuild/BUILD/lapack-
static-3.12.0-build/lapack-3.12.0/SRC/sspgst.f
that's the whole NAME section, no notes, that's literally it. iconic behavior honestly π
β¨ SYNOPSIS β¨
Functions/Subroutines π¦
subroutine SSPGST (itype, uplo, n, ap, bp, info)
SSPGST
πΈ Function/Subroutine Documentation πΈ
subroutine SSPGST (integer itype, character uplo, integer n, real,
dimension( * ) ap, real, dimension( * ) bp, integer info)
SSPGST
π Purpose
!> !> SSPGST reduces a real symmetric-definite generalized eigenproblem !> to standard form, using packed storage. !> !> If ITYPE = 1, the problem is A*x = lambda*B*x, !> and A is overwritten by inv(UT)*A*inv(U) or inv(L)*A*inv(LT) !> !> If ITYPE = 2 or 3, the problem is A*B*x = lambda*x or !> B*A*x = lambda*x, and A is overwritten by U*A*UT or LT*A*L. !> !> B must have been previously factorized as UT*U or L*LT by SPPTRF. !>
so like, tl;dr: bestie takes a generalized eigenproblem and reduces it to standard form, using packed storage the whole time. and listen π β B has to have already been factorized as U**T*U or L*L**T by SPPTRF before you come here. no prep, no vibes, no entry. π
β¨ Parameters
ITYPE
!> ITYPE is INTEGER !> = 1: compute inv(UT)*A*inv(U) or inv(L)*A*inv(LT); !> = 2 or 3: compute U*A*UT or LT*A*L. !>
(so it's giving very much "which one of the three modes are we in" energy π₯)
UPLO
!> UPLO is CHARACTER*1 !> = 'U': Upper triangle of A is stored and B is factored as !> UT*U; !> = 'L': Lower triangle of A is stored and B is factored as !> L*LT. !>
like, 'U' for upper triangle, 'L' for lower β pick your side, there is no third option ngl π
N
!> N is INTEGER !> The order of the matrices A and B. N >= 0. !>
the order of A and B, and it's gotta be N >= 0 fr fr
AP
!> AP is REAL array, dimension (N*(N+1)/2) !> On entry, the upper or lower triangle of the symmetric 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. !> !> On exit, if INFO = 0, the transformed matrix, stored in the !> same format as A. !>
so AP is a REAL array of dimension (N*(N+1)/2) and it's packed columnwise, meaning the offset math is literally the main character here π β memorize those two index formulas or perish bestie:
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.
and on exit, if INFO = 0, you get the transformed matrix back π¦ β same format as A, no glow-up in the structure, only in the values β¨
BP
!> BP is REAL array, dimension (N*(N+1)/2) !> The triangular factor from the Cholesky factorization of B, !> stored in the same format as A, as returned by SPPTRF. !>
REAL array, dimension (N*(N+1)/2), and it's the triangular factor from the Cholesky factorization of B β stored in the same format as A, exactly as SPPTRF returned it π«Ά
INFO
!> INFO is INTEGER !> = 0: successful exit !> < 0: if INFO = -i, the i-th argument had an illegal value !>
INFO = 0? slay, successful exit π INFO < 0? if INFO = -i, then the i-th argument had an illegal value π someone did NOT read the docs
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
(that's the whole squad, four institutions, no cap π)
β Definition
Definition at line 112 of file sspgst.f.
π§ Author (the meta one, yes really)
Generated automatically by Doxygen for LAPACK from the source code. (so nobody hand-wrote this page, a robot did it, and honestly? it ate π€π )
and that's the whole page bestie β no options skipped, no numbers dropped, everything's here π
That was all brought to you by LAPACK, Version 3.12.0 β and the date slot on this footer is genuinely empty, so like, no date, just vibes and the filename /home/abui...RC/sspgst.f(3) πβ¨ bye pookie, go invert something π¦
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms