XERBLA(3)
π XERBLA(3) β like, the test-only error handler, bestie
okay so real talk, this page lives in the Library Functions Manual and the file path situation is a whole journey: /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/LIN/xerbla.f. yes that's the actual path. no I'm not kidding. π«Ά
β¨ NAME β¨
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/LIN/xerbla.f
like... that's it. that's the name. it's giving "find me in the TESTING/LIN folder or don't find me at all" energy π
π¦ SYNOPSIS π¦
Functions/Subroutines
subroutine XERBLA (srname, info)
XERBLA
π Function/Subroutine Documentation π
subroutine XERBLA (character*(*) srname, integer info)
XERBLA β iconic name, iconic subroutine, and yes it gets its own little heading twice because the docs are extra like that.
πΈ Purpose πΈ
okay so listen, this is not the normal XERBLA. this is a special version of XERBLA to be used only as part of the test program for testing error exits from the LAPACK routines. it's the understudy. the stunt double. the one that shows up only in testing. π
the vibe: error messages are printed if INFO.NE.INFOT or if SRNAME.NE.SRNAMT, where INFOT and SRNAMT are values stored in COMMON. so it's like a vibe check for your error handling β if you don't match, it will say something. periodt.
π§ Parameters π§
SRNAMEβSRNAMEisCHARACTER*(*). it's the name of the subroutine callingXERBLA, and bestie, this name should match the COMMON variableSRNAMT. that's the whole assignment. mismatch = printed complaint. πINFOβINFOisINTEGER. it's the error return code from the calling subroutine, andINFOshould equal the COMMON variableINFOT. also a matching situation. also will get called out if it doesn't line up. π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
look at that group project roster. four institutions carrying the whole thing. slay. π₯
π Further Details π
the following variables are passed via the common blocks INFOC and SRNAMC:
INFOTβINTEGERβ expected integer return codeNOUTβINTEGERβ unit number for printing error messagesOKβLOGICALβ set to.TRUE.ifINFO = INFOTandSRNAME = SRNAMT, otherwise set to.FALSE.LERRβLOGICALβ set to.TRUE., indicating thatXERBLAwas calledSRNAMTβCHARACTER*(*)β expected name of calling subroutine
like, it's a whole little state machine living in COMMON blocks and honestly? i'm obsessed. OK goes .TRUE. only when both things match β everything else flips it to .FALSE. and LERR lights up to say "yep, XERBLA got called." π
ngl, all of this is common-block global state, so treatINFOCandSRNAMCwith the respect you'd give someone else's group chat. don't go renaming things. π«Ά
β Definition β
Definition at line 74 of file xerbla.f.
πΈ Author (the second one, yes really) πΈ
Generated automatically by Doxygen for LAPACK from the source code. not a human. a robot did this. and it ate. π€β¨
and that's the page!! the footer says it's LAPACK, Version 3.12.0, dated /home/abui...IN/xerbla.f(3) β so yeah, LAPACK 3.12.0, cute little truncated date stamp and all. mwah, bye 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