SPOTRS(3)
β¨ NAME β¨
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/spotrs.f
okay so bestie, this is a page from the Library Functions Manual π and the star of the show is that file right up there β that's the whole name section, no cap, it's literally just the path to the Fortran source. She's not mysterious, she's just filed under her address π
πΈ SYNOPSIS πΈ
Functions/Subroutines
subroutine SPOTRS (uplo, n, nrhs, a, lda, b, ldb, info)
SPOTRSβ that's her. the whole point. the moment. π
π¦ Function/Subroutine Documentation π¦
subroutine SPOTRS (character uplo, integer n, integer nrhs, real, dimension( lda, * ) a, integer lda, real, dimension( ldb, * ) b, integer ldb, integer info)
SPOTRS β¨ β full signature, all seven-ish arguments accounted for, we love a complete cast list π
π Purpose π
!>!> SPOTRS solves a system of linear equations A*X = B with a symmetric!> positive definite matrix A using the Cholesky factorization!> A = U**T*U or A = L*L**T computed by SPOTRF.!>
so like β you already did the Cholesky thing with SPOTRF (that's the glow-up prep step, the "getting ready" of linear algebra π), and now SPOTRS comes in and actually solves A*X = B for you. symmetric positive definite matrix A, using either A = U**T*U or A = L*L**T. main character energy fr fr π₯
π Parameters π
UPLOβCHARACTER*1, the vibe selector for which triangle ofAyou actually stored. she takes exactly two looks:= 'U': upper triangle ofAis stored;= 'L': lower triangle ofAis stored.
NβINTEGER, the order of the matrixA. constraint era:N >= 0β¨NRHSβINTEGER, the number of right hand sides, i.e., the number of columns of the matrixB. also constrained:NRHS >= 0πAβREAL array, dimension (LDA,N). this is the triangular factorUorLfrom the Cholesky factorizationA = U**T*UorA = L*L**T, as computed bySPOTRF. so don't hand her a raw matrix, hand her the factorized one, iykyk π§LDAβINTEGER, the leading dimension of the arrayA.LDA >= max(1,N)β respect the constraint or she will not be ok πBβREAL array, dimension (LDB,NRHS). on entry, the right hand side matrixB. on exit, the solution matrixX. she transforms in place, that's the whole trick βBwalks in as the question and leaves as the answer π¦LDBβINTEGER, the leading dimension of the arrayB.LDB >= max(1,N). same energy, same rule πΈINFOβINTEGER, the status report, the vibe check at the end:= 0: successful exit π< 0: ifINFO = -i, the i-th argument had an illegal value π (yes, negative β she's pointing at which argument was messy)
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
the whole squad π«Ά listed in that exact order.
Definition at line 109 of file spotrs.f. π
β Author β
Generated automatically by Doxygen for LAPACK from the source code. (yes, a second Author section β the first one is the humans, this one is the robot. both iconic π )
πΈ that's the page!! LAPACK, Version 3.12.0, and the file is /home/abui...RC/spotrs.f(3) β mwah, go solve something symmetric and positive definite bestie πβ¨
π¦ 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