SRC/slasyf_rook.f(3)
π SRC/slasyf_rook.f(3) β Library Functions Manual π
okay so bestie, this page is literally from the Library Functions Manual and it's all about SRC/slasyf_rook.f β one tiny Fortran file that does some very main-character linear algebra. let's get into it β¨
β¨ NAME β¨
SRC/slasyf_rook.f β that's it, that's the name, she's lowkey mysterious π¦
πΈ SYNOPSIS πΈ
Functions/Subroutines
subroutine slasyf_rook (uplo, n, nb, kb, a, lda, ipiv, w, ldw, info)
SLASYF_ROOK computes a partial factorization of a real symmetric matrix using the bounded Bunch-Kaufman (rook")diagonalpivotingmethod. yes bestie, the docs really typed it like that, no notes π
π Function/Subroutine Documentation π
subroutine slasyf_rook (character uplo, integer n, integer nb, integer kb,
real, dimension( lda, * ) a, integer lda, integer, dimension( * ) ipiv,
real, dimension( ldw, * ) w, integer ldw, integer info)
SLASYF_ROOK computes a partial factorization of a real symmetric matrix using the bounded Bunch-Kaufman ("rook") diagonal pivoting method.
π§ Purpose π§
so the vibe is: SLASYF_ROOK computes a partial factorization of a real symmetric matrix A using the bounded Bunch-Kaufman () diagonal pivoting method. the partial factorization has this form, and yes we're gonna write it out in full because she's iconic:
A = ( I U12 ) ( A11 0 ) ( I 0 ) if UPLO = 'U', or:
( 0 U22 ) ( 0 D ) ( U12**T U22**T )
A = ( L11 0 ) ( D 0 ) ( L11**T L21**T ) if UPLO = 'L'
( L21 I ) ( 0 A22 ) ( 0 I )
where the order of D is at most NB. the actual order is returned in the argument KB, and is either NB or NB-1, or N if N <= NB. periodt π
SLASYF_ROOK is an auxiliary routine called by SSYTRF_ROOK. it uses blocked code (calling Level 3 BLAS) to update the submatrix A11 (if UPLO = 'U') or A22 (if UPLO = 'L'). she's a helper girly, a supporting character who's secretly carrying the whole plot π«Ά
π Parameters π
UPLOβUPLOisCHARACTER*1. specifies whether the upper or lower triangular part of the symmetric matrixAis stored:= 'U': Upper triangular;= 'L': Lower triangular. pick your fave side, both are valid πNβNisINTEGER. the order of the matrixA.N >= 0. no negative girlies allowed πNBβNBisINTEGER. the maximum number of columns of the matrixAthat should be factored.NBshould be at least2to allow for 2-by-2 pivot blocks. like, at least two, bestie, the 2-by-2 blocks need room to breathe πKBβKBisINTEGER. the number of columns ofAthat were actually factored.KBis eitherNB-1orNB, orNifN <= NB. she's the "what actually happened" number, not the "what we hoped for" number πAβAisREAL array, dimension (LDA,N). on entry, the symmetric matrixA. ifUPLO = 'U', the leadingn-by-nupper triangular part ofAcontains the upper triangular part of the matrixA, and the strictly lower triangular part ofAis not referenced. ifUPLO = 'L', the leadingn-by-nlower triangular part ofAcontains the lower triangular part of the matrixA, and the strictly upper triangular part ofAis not referenced. on exit,Acontains details of the partial factorization. glow-up alert β¨LDAβLDAisINTEGER. the leading dimension of the arrayA.LDA >= max(1,N). respect the leading dimension or perish π₯IPIVβIPIVisINTEGER array, dimension (N). details of the interchanges and the block structure ofD. here's the tea, split byUPLO:- if
UPLO = 'U':- only the last
KBelements ofIPIVare set. - if
IPIV(k) > 0, then rows and columnskandIPIV(k)were interchanged andD(k,k)is a 1-by-1 diagonal block. - if
IPIV(k) < 0andIPIV(k-1) < 0, then rows and columnskand-IPIV(k)were interchanged and rows and columnsk-1and-IPIV(k-1)were interchanged,D(k-1:k,k-1:k)is a 2-by-2 diagonal block.
- only the last
- if
UPLO = 'L':- only the first
KBelements ofIPIVare set. - if
IPIV(k) > 0, then rows and columnskandIPIV(k)were interchanged andD(k,k)is a 1-by-1 diagonal block. - if
IPIV(k) < 0andIPIV(k+1) < 0, then rows and columnskand-IPIV(k)were interchanged and rows and columnsk+1and-IPIV(k+1)were interchanged,D(k:k+1,k:k+1)is a 2-by-2 diagonal block.
- only the first
- if
bestie note: the negative-IPIVcase means a 2-by-2 block, and the index you compare against flips depending onUPLOβk-1for upper,k+1for lower. do NOT mix those up, iykyk π
WβWisREAL array, dimension (LDW,NB). that's the whole description, she's a woman of few words πLDWβLDWisINTEGER. the leading dimension of the arrayW.LDW >= max(1,N). same energy asLDA, keep her big enough βINFOβINFOisINTEGER. the receipts:= 0: successful exit π> 0: ifINFO = k,D(k,k)is exactly zero. the factorization has been completed, but the block diagonal matrixDis exactly singular.
so INFO > 0 is not an "oops we stopped" β the work is done, the matrix is just singular. very "the math is mathing but the determinant isn't" π
π¦ Author π¦
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Contributors: π
- November 2013, Igor Kozachenko, Computer Science Division, University of California, Berkeley
- September 2007, Sven Hammarling, Nicholas J. Higham, Craig Lucas, School of Mathematics, University of Manchester
π Definition π
definition at line 182 of file slasyf_rook.f. π§
π Author π
Generated automatically by Doxygen for LAPACK from the source code. not a human, just a very diligent robot π«Ά
and that's the whole page, bestie β LAPACK Version 3.12.0, SRC/slasyf_rook.f(3), slay, no cap, go factor something symmetric πβ¨π
π¦ 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