SROUNDUP_LWORK.F(3)
Okay bestie, welcome to INSTALL/sroundup_lwork.f from the Library Functions Manual β this is the tiny-but-iconic routine that deals with a subtle bug when you return LWORK as a Float, and it is serving main-character energy. π
β¨
πΈ NAME πΈ
INSTALL/sroundup_lwork.f β that's the name, no cap. π«Ά
β¨ SYNOPSIS β¨
π§ Functions/Subroutines π§
real function sroundup_lwork (lwork)βSROUNDUP_LWORK. That's the whole synopsis vibe. π
π FUNCTION/SUBROUTINE DOCUMENTATION π
real function sroundup_lwork (integer lwork)
SROUNDUP_LWORK β say it with me, bestie. π
π Purpose π
SROUNDUP_LWORK deals with a subtle bug with returning LWORK as a Float. This routine guarantees it is rounded up instead of down by multiplying LWORK by 1+eps when it is necessary, where eps is the relative machine precision. E.g.,
float( 16777217 ) == 16777216
float( 16777217 ) * (1.+eps) == 16777218
Then the docs hand us the literal return/verbatim bits:
!> \return SROUNDUP_LWORK
!> \verbatim
!> SROUNDUP_LWORK >= LWORK.
!> SROUNDUP_LWORK is guaranteed to have zero decimal part.
!>
π Parameters π
LWORKβ workspace size. That's it, that's the argument. π
π Author π
Weslley Pereira, University of Colorado Denver, USA. π
π₯ Further Details π₯
!> This routine was inspired in the method `magma_zmake_lwork` from MAGMA.
!> \see https://bitbucket.org/icl/magma/src/master/control/magma_zauxiliary.cpp
!>
Definition at line 58 of file sroundup_lwork.f. β¨
π AUTHOR π
Generated automatically by Doxygen for LAPACK from the source code. π€π
Okay that's the whole page, bestie! Mwah π β from LAPACK Version 3.12.0, page INSTALL/sroundup_lwork.f(3), and there's no date line in the footer to report, so I'm not inventing one. π¦πΈ
π¦ 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