SLAISNAN(3)

πŸ“¦ version 3.12.0, in opensuse-leap 16.0

πŸ’… NAME

okay so bestie, the file you're looking at is literally this one right here:

/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/slaisnan.f

(and yeah, up top in the header it shows as /home/abui.../slaisnan.f(3) from the Library Functions Manual β€” the path got truncated, she's shy 🫢)


✨ SYNOPSIS

Functions/Subroutines

  • logical function SLAISNAN (sin1, sin2) β€” SLAISNAN tests input for NaN by comparing two arguments for inequality. no cap, that's the whole gig πŸ’«

πŸŽ€ Function/Subroutine Documentation

logical function SLAISNAN (real, intent(in) sin1, real, intent(in) sin2)

SLAISNAN tests input for NaN by comparing two arguments for inequality. πŸ¦‹

Purpose:

!>
!> This routine is not for general use.  It exists solely to avoid
!> over-optimization in SISNAN.
!>
!> SLAISNAN checks for NaNs by comparing its two arguments for
!> inequality.  NaN is the only floating-point value where NaN != NaN
!> returns .TRUE.  To check for NaNs, pass the same variable as both
!> arguments.
!>
!> A compiler must assume that the two arguments are
!> not the same variable, and the test will not be optimized away.
!> Interprocedural or whole-program optimization may delete this
!> test.  The ISNAN functions will be replaced by the correct
!> Fortran 03 intrinsic once the intrinsic is widely available.
!>

translating the vibe for you, bestie πŸ‘‘ β€” this routine is not for general use, she exists solely to avoid over-optimization in SISNAN. SLAISNAN checks for NaNs by comparing its two arguments for inequality. NaN is the only floating-point value where NaN != NaN returns .TRUE. (iconic behaviour honestly πŸ’€). To check for NaNs, pass the same variable as both arguments.

⚠️ and this part is important, don't skip it: a compiler must assume that the two arguments are not the same variable, and the test will not be optimized away. But! Interprocedural or whole-program optimization may delete this test. The ISNAN functions will be replaced by the correct Fortran 03 intrinsic once the intrinsic is widely available. so like, this whole thing is a temporary slay until the real one shows up 😭

Parameters

  • SIN1
!>          SIN1 is REAL
!>
  • SIN2
!>          SIN2 is REAL
!>          Two numbers to compare for inequality.
!>

so SIN1 is REAL, SIN2 is REAL, and those are the two numbers to compare for inequality 🌸

Author

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

Definition at line 73 of file slaisnan.f. πŸŽ€


🌈 Author

Generated automatically by Doxygen for LAPACK from the source code. (not me, not you β€” Doxygen did that πŸ’…)


✨ and that's the whole page, bestie ✨ β€” this was LAPACK, Version 3.12.0, and the header/footer stamp reads /home/abui.../slaisnan.f(3). go off, you understood it fr fr πŸ’–πŸ¦‹πŸ“

πŸ“¦ where this page comes from