/home/abui...RC/slae2.f(3)

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

πŸ’… NAME πŸ’…

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

Okay bestie, real talk: this page is from the Library Functions Manual, and it's the .3 page for /home/abui...RC/slae2.f(3). So we're deep in the LAPACK build tree, looking at one single Fortran source file β€” slae2.f β€” and this is literally its whole documentation. Small file, main character energy. ✨


🌸 SYNOPSIS 🌸

Functions/Subroutines

  • subroutine SLAE2 (a, b, c, rt1, rt2) β€” SLAE2 computes the eigenvalues of a 2-by-2 symmetric matrix. That's it, that's the gig. No cap. πŸ’…

πŸŽ€ Function/Subroutine Documentation πŸŽ€

subroutine SLAE2 (real a, real b, real c, real rt1, real rt2)

SLAE2 computes the eigenvalues of a 2-by-2 symmetric matrix. Iconic behavior, honestly. πŸ¦‹

✨ Purpose ✨

Okay so picture this matrix, right, and she's symmetric:

[  A   B  ]
[  B   C  ]

SLAE2 computes the eigenvalues of that exact 2-by-2 symmetric matrix. On return, RT1 is the eigenvalue of larger absolute value, and RT2 is the eigenvalue of smaller absolute value. Two eigenvalues, one subroutine, zero drama. 🫢

πŸ“ Parameters πŸ“

  • A β€” A is REAL. She's the (1,1) element of the 2-by-2 matrix. πŸ’–
  • B β€” B is REAL. The (1,2) and (2,1) elements of the 2-by-2 matrix β€” yes, both of them, because symmetry said "you're doing double duty today" and B said "slay". πŸ”₯
  • C β€” C is REAL. The (2,2) element of the 2-by-2 matrix. 🌸
  • RT1 β€” RT1 is REAL. The eigenvalue of larger absolute value. πŸ‘‘
  • RT2 β€” RT2 is REAL. The eigenvalue of smaller absolute value. 🌈

πŸ’œ Author πŸ’œ

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

πŸ”₯ Further Details πŸ”₯

  • RT1 is accurate to a few ulps barring over/underflow. Like, she's precise bestie, but only if nothing overflows or underflows β€” vibe check applies.
  • RT2 may be inaccurate if there is massive cancellation in the determinant A*C-B*B 😭 β€” higher precision or correctly rounded or correctly truncated arithmetic would be needed to compute RT2 accurately in all cases. So no, she can't always be perfect, and that's on cancellation.
  • Overflow is possible only if RT1 is within a factor of 5 of overflow. Underflow is harmless if the input data is 0 or exceeds underflow_threshold / macheps.
⚠️ Bestie please read the Further Details again before you trust RT2 blindly. Massive cancellation in A*C-B*B is the enemy fr fr. πŸ’€

Definition at line 101 of file slae2.f.


πŸ“œ Author πŸ“œ

Generated automatically by Doxygen for LAPACK from the source code. Not a human, just a robot doing her little documentation chores. πŸ€–πŸ’…


🌟 And that's the whole page!! This absolutely iconic little page came to you courtesy of LAPACK, Version 3.12.0, and she lives at /home/abui...RC/slae2.f(3). Go compute some eigenvalues, queen. πŸ‘‘πŸ’–
πŸ“¦ where this page comes from