SRC/slae2.f(3)

πŸ’… SRC/slae2.f(3) β€” the Library Functions Manual moment ✨

okay bestie, welcome to the SRC/slae2.f(3) page. she’s giving classic LAPACK, she’s giving eigenvalues, and she’s absolutely not gatekeeping. 🫢


🌸 NAME 🌸

SRC/slae2.f β€” that’s the name, and yes, she’s iconic. πŸ’–


✨ SYNOPSIS ✨

🧚 Functions/Subroutines

subroutine slae2 (a, b, c, rt1, rt2)

SLAE2 computes the eigenvalues of a 2-by-2 symmetric matrix. no cap, that’s the whole slay. πŸ”₯


πŸ¦‹ 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. we’re so back. πŸ‘‘

🌈 Purpose

SLAE2 computes the eigenvalues of a 2-by-2 symmetric matrix:

[  A   B  ]
[  B   C  ].

On return, RT1 is the eigenvalue of larger absolute value, and RT2 is the eigenvalue of smaller absolute value. periodt. πŸ’…

πŸŽ€ Parameters

  • A β€” A is REAL. it’s the (1,1) element of the 2-by-2 matrix. 🫢
  • B β€” B is REAL. it’s the (1,2) and (2,1) elements of the 2-by-2 matrix. ✨
  • C β€” C is REAL. it’s the (2,2) element of the 2-by-2 matrix. 🌸
  • RT1 β€” RT1 is REAL. it’s the eigenvalue of larger absolute value. πŸ‘‘
  • RT2 β€” RT2 is REAL. it’s the eigenvalue of smaller absolute value. πŸŽ€

🌸 Author

the author squad is:

  • 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. ✨
  • 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. 😭
  • 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. 🫢

πŸ“ Definition at line 101 of file slae2.f.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for LAPACK from the source code. πŸ€– (robot-made, but the vibes are still immaculate.)


sign-off from LAPACK, Version 3.12.0, on SRC/slae2.f(3) β€” that’s the footer, bestie. bye! πŸ’–βœ¨

πŸ“¦ where this page comes from