/home/abui...RC/ssysv.f(3)
π NAME
okay so bestie, this is the manual page for /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/ssysv.f β like yes that's a whole entire path and it's giving "my home address on the first day of school" π β¨ but that's literally the name of this thing, no cap.
This is part of the LAPACK Library Functions Manual, and it's about one specific little icon: the SSYSV subroutine. π
β¨ SYNOPSIS β¨
πΈ Functions/Subroutines
subroutine SSYSV (uplo, n, nrhs, a, lda, ipiv, b, ldb, work, lwork, info)β and like, what does it do? It SSYSV computes the solution to system of linear equations A * X = B for SY matrices. that's the whole vibe. π«
π₯ Function/Subroutine Documentation π₯
π«Ά the full signature (yes, all of it)
subroutine SSYSV (character uplo, integer n, integer nrhs, real, dimension(
lda, * ) a, integer lda, integer, dimension( * ) ipiv, real, dimension(
ldb, * ) b, integer ldb, real, dimension( * ) work, integer lwork,
integer info)
and again, for the people in the back: SSYSV computes the solution to system of linear equations A * X = B for SY matrices. π
π¦ Purpose
so here's the tea, bestie β SSYSV computes the solution to a real 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. like, it's solving for X, that's the whole plot. π
The diagonal pivoting method is used to factor A as
A = U * D * U**T, if UPLO = 'U', or
A = L * D * L**T, if UPLO = 'L',
where U (or L) is a product of permutation and unit upper (lower) triangular matrices, and D is symmetric and block diagonal with 1-by-1 and 2-by-2 diagonal blocks. The factored form of A is then used to solve the system of equations A * X = B. slay, honestly. π
π Parameters
π UPLO
UPLO is CHARACTER*1 and it's literally just "which triangle of A are we even looking at":
= 'U': Upper triangle of A is stored;= 'L': Lower triangle of A is stored.
pick one, bestie, don't be indecisive. π
π N
N is INTEGER β the number of linear equations, i.e., the order of the matrix A. constraint era: N >= 0. β¨
π NRHS
NRHS is INTEGER β the number of right hand sides, i.e., the number of columns of the matrix B. also NRHS >= 0. so many right-hand sides, so little time. π
π A
A is REAL array, dimension (LDA,N).
On entry, it's the symmetric 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 (it's just sitting there, unbothered, not invited to the function π§). 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.
On exit, if INFO = 0, you get the block diagonal matrix D and the multipliers used to obtain the factor U or L from the factorization A = U*D*U**T or A = L*D*L**T as computed by SSYTRF. glow-up complete. β
π LDA
LDA is INTEGER β the leading dimension of the array A. rule of law: LDA >= max(1,N). π
π IPIV
IPIV is INTEGER array, dimension (N) β details of the interchanges and the block structure of D, as determined by SSYTRF. and this part is lowkey the whole lore, so pay attention:
- If
IPIV(k) > 0, then rows and columnskandIPIV(k)were interchanged, andD(k,k)is a 1-by-1 diagonal block. - If
UPLO = 'U'andIPIV(k) = IPIV(k-1) < 0, then rows and columnsk-1and-IPIV(k)were interchanged andD(k-1:k,k-1:k)is a 2-by-2 diagonal block. - If
UPLO = 'L'andIPIV(k) = IPIV(k+1) < 0, then rows and columnsk+1and-IPIV(k)were interchanged andD(k:k+1,k:k+1)is a 2-by-2 diagonal block.
see? 2-by-2 blocks are the main characters here. π
π B
B is REAL array, dimension (LDB,NRHS).
On entry, the N-by-NRHS right hand side matrix B. On exit, if INFO = 0, the N-by-NRHS solution matrix X. it literally transforms. ate and left no crumbs. π₯
π LDB
LDB is INTEGER β the leading dimension of the array B, and LDB >= max(1,N). yes we're checking again. π
π WORK
WORK is REAL array, dimension (MAX(1,LWORK)). On exit, if INFO = 0, WORK(1) returns the optimal LWORK. it's the little helper that could. π«Ά
π LWORK
LWORK is INTEGER β the length of WORK. LWORK >= 1, and for best performance LWORK >= max(1,N*NB), where NB is the optimal blocksize for SSYTRF.
- for
LWORK < N, TRS will be done with Level BLAS 2 - for
LWORK >= N, TRS will be done with Level BLAS 3
and, iconic behaviour: if LWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of the WORK array, returns this value as the first entry of the WORK array, and no error message related to LWORK is issued by XERBLA. so it's like asking "how much room do I need" and it just tells you instead of screaming. πΈ
π INFO
INFO is INTEGER and it's the vibe check at the end:
= 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 matrix D is exactly singular, so the solution could not be computed. π like it tried, it finished the factorization, and then there was just... no solution. tragic.
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Definition at line 169 of file ssysv.f.
π Author
Generated automatically by Doxygen for LAPACK from the source code. so nobody hand-wrote this one, a robot did it, and honestly? respect. π€β¨
and that's the whole page, bestie!! π LAPACK, Version 3.12.0, live from /home/abui...RC/ssysv.f(3) β go forth and solve your symmetric systems. mwah. ππ¦π
π¦ 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