SROUNDUP_LWORK(3)
π SROUNDUP_LWORK π
okay bestie, welcome to the LAPACK Library Functions Manual β this page is all about SROUNDUP_LWORK, and it's giving tiny-subroutine-big-rounding-energy β¨ no cap.
π©· NAME π©·
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/INSTALL/sroundup_lwork.f
β¨ SYNOPSIS β¨
Functions/Subroutines
real function SROUNDUP_LWORK (lwork)
SROUNDUP_LWORK
π§ Function/Subroutine Documentation π§
real function SROUNDUP_LWORK (integer lwork)
SROUNDUP_LWORK
π Purpose: π
okay so 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. Slay, honestly.
E.g., look at this little glow-up:
float( 16777217 ) == 16777216
float( 16777217 ) * (1.+eps) == 16777218
The docs mark the return as \return SROUNDUP_LWORK and open a \verbatim block for the guarantees:
SROUNDUP_LWORK >= LWORK.SROUNDUP_LWORKis guaranteed to have zero decimal part.
πΈ Parameters πΈ
LWORKβ Workspace size. That's the whole parameter, bestie π
π 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 vibe π this page was doing LAPACK Version 3.12.0 in the footer, plus the path /home/abui...dup_lwork.f(3). Bye bestie β go round up your LWORK and slay β¨π«Ά
π¦ 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