.TH "roundup_lwork" 3 "Version 3.12.0" "LAPACK" \" -*- nroff -*- .ad l .nh .SH NAME roundup_lwork \- roundup_lwork: fix rounding integer to float .SH SYNOPSIS .br .PP .SS "Functions" .in +1c .ti -1c .RI "double precision function \fBdroundup_lwork\fP (lwork)" .br .RI "\fBDROUNDUP_LWORK\fP " .ti -1c .RI "real function \fBsroundup_lwork\fP (lwork)" .br .RI "\fBSROUNDUP_LWORK\fP " .in -1c .SH "Detailed Description" .PP .SH "Function Documentation" .PP .SS "double precision function droundup_lwork (integer lwork)" .PP \fBDROUNDUP_LWORK\fP .PP \fBPurpose:\fP .RS 4 .PP .nf !> !> DROUNDUP_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( 9007199254740993 ) == 9007199254740992 !> float( 9007199254740993 ) * (1\&.+eps) == 9007199254740994 !> !> \\return DROUNDUP_LWORK !> \\verbatim !> DROUNDUP_LWORK >= LWORK\&. !> DROUNDUP_LWORK is guaranteed to have zero decimal part\&. !> .fi .PP .RE .PP \fBParameters\fP .RS 4 \fILWORK\fP Workspace size\&. .RE .PP \fBAuthor\fP .RS 4 Weslley Pereira, University of Colorado Denver, USA .RE .PP \fBFurther Details:\fP .RS 4 .PP .nf !> This routine was inspired in the method `magma_zmake_lwork` from MAGMA\&. !> \\see https://bitbucket\&.org/icl/magma/src/master/control/magma_zauxiliary\&.cpp !> .fi .PP .RE .PP .PP Definition at line \fB58\fP of file \fBdroundup_lwork\&.f\fP\&. .SS "real function sroundup_lwork (integer lwork)" .PP \fBSROUNDUP_LWORK\fP .PP \fBPurpose:\fP .RS 4 .PP .nf !> !> 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 !> !> \\return SROUNDUP_LWORK !> \\verbatim !> SROUNDUP_LWORK >= LWORK\&. !> SROUNDUP_LWORK is guaranteed to have zero decimal part\&. !> .fi .PP .RE .PP \fBParameters\fP .RS 4 \fILWORK\fP Workspace size\&. .RE .PP \fBAuthor\fP .RS 4 Weslley Pereira, University of Colorado Denver, USA .RE .PP \fBFurther Details:\fP .RS 4 .PP .nf !> This routine was inspired in the method `magma_zmake_lwork` from MAGMA\&. !> \\see https://bitbucket\&.org/icl/magma/src/master/control/magma_zauxiliary\&.cpp !> .fi .PP .RE .PP .PP Definition at line \fB58\fP of file \fBsroundup_lwork\&.f\fP\&. .SH "Author" .PP Generated automatically by Doxygen for LAPACK from the source code\&.