SRC/csysv_aa.f(3)
π NAME π
SRC/csysv_aa.f β yeah bestie, that's the whole name section, she's literally just her filename. Iconic minimalism. This page lives in the Library Functions Manual, and it's about one very specific little Fortran subroutine that lowkey does a LOT. π¦
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine csysv_aa (uplo, n, nrhs, a, lda, ipiv, b, ldb, work, lwork, info)
CSYSV_AA computes the solution to system of linear equations A * X = B for SY matrices π
π Function/Subroutine Documentation π
okay so here's the full signature, unchanged, no cap:
subroutine csysv_aa (character uplo, integer n, integer nrhs, complex,
dimension( lda, * ) a, integer lda, integer, dimension( * ) ipiv,
complex, dimension( ldb, * ) b, integer ldb, complex, dimension( * )
work, integer lwork, integer info)
CSYSV_AA computes the solution to system of linear equations A * X = B for SY matrices π
πΈ Purpose πΈ
So CSYSV computes the solution to a complex system of linear equations
A * X = B,
where A is an N-by-N symmetric matrix and X and B are N-by-NRHS matrices. She's solving stuff, that's her whole job. π
Aasen's algorithm is used to factor A as
A = U**T * T * U, if UPLO = 'U', or
A = L * T * L**T, if UPLO = 'L',
where U (or L) is a product of permutation and unit upper (lower) triangular matrices, and T is symmetric tridiagonal. Then the factored form of A is used to solve the system of equations A * X = B. Like, she breaks it apart, then puts it back together to solve it. main character energy fr fr. π§
β¨ Parameters β¨
UPLOβUPLOisCHARACTER*1. Which triangle are we working with, bestie?= 'U': Upper triangle ofAis stored;= 'L': Lower triangle ofAis stored.
NβNisINTEGER. The number of linear equations, i.e., the order of the matrixA.N >= 0. (zero is allowed, she's chill like that)NRHSβNRHSisINTEGER. The number of right hand sides, i.e., the number of columns of the matrixB.NRHS >= 0.AβAisCOMPLEXarray, dimension(LDA,N).- On entry, the symmetric matrix
A. IfUPLO = 'U', the leading N-by-N upper triangular part ofAcontains the upper triangular part of the matrixA, and the strictly lower triangular part ofAis not referenced. IfUPLO = 'L', the leading N-by-N lower triangular part ofAcontains the lower triangular part of the matrixA, and the strictly upper triangular part ofAis not referenced. So like, the other half is just vibing, untouched. π - On exit, if
INFO = 0, the tridiagonal matrixTand the multipliers used to obtain the factorUorLfrom the factorizationA = U**T*T*UorA = L*T*L**Tas computed byCSYTRF.
- On entry, the symmetric matrix
LDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= max(1,N). Do NOT skip this one, it's a vibe check for your array. βIPIVβIPIVisINTEGERarray, dimension(N). On exit, it contains the details of the interchanges, i.e., the row and columnkofAwere interchanged with the row and columnIPIV(k).BβBisCOMPLEXarray, dimension(LDB,NRHS).- On entry, the N-by-NRHS right hand side matrix
B. - On exit, if
INFO = 0, the N-by-NRHS solution matrixX. Glow-up moment. β¨
- On entry, the N-by-NRHS right hand side matrix
LDBβLDBisINTEGER. The leading dimension of the arrayB.LDB >= max(1,N).WORKβWORKisCOMPLEXarray, dimension(MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK. She tells you how much room she really wanted. πLWORKβLWORKisINTEGER. The length ofWORK.LWORK >= MAX(2*N, 3*N-2), and for the best performance,LWORK >= max(1,N*NB), whereNBis the optimal blocksize forCSYTRF_AA.- If
LWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of theWORKarray, returns this value as the first entry of theWORKarray, and no error message related toLWORKis issued byXERBLA. It's giving "just asking, not committing" π«Ά
- If
INFOβINFOisINTEGER.= 0: successful exit π< 0: ifINFO = -i, the i-th argument had an illegal value π> 0: ifINFO = i,D(i,i)is exactly zero. The factorization has been completed, but the block diagonal matrixDis exactly singular, so the solution could not be computed. π
Heads up bestie: thatINFO > 0case is a real one β the factorization finishes but the block diagonal matrixDis exactly singular, so no solution for you. Not a crash, just a "girl, there's no answer" moment.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 160 of file csysv_aa.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code. (not me, a robot did it π€)
okay that's the whole page, you ate that π β this was LAPACK, Version 3.12.0, page SRC/csysv_aa.f(3). go forth and solve some complex symmetric systems, bestie πππ¦
π¦ 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