SRC/dlae2.f(3)

πŸ’… SRC/dlae2.f(3)

okay bestie, welcome to the Library Functions Manual page for SRC/dlae2.f β€” this is the one about computing eigenvalues of a 2-by-2 symmetric matrix, and it is lowkey iconic ✨


✨ SYNOPSIS ✨

🫢 Functions/Subroutines

subroutine dlae2 (a, b, c, rt1, rt2)
    DLAE2 computes the eigenvalues of a 2-by-2 symmetric matrix.

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

subroutine dlae2 (double precision a, double precision b, double precision c, double precision rt1, double precision rt2)

DLAE2 computes the eigenvalues of a 2-by-2 symmetric matrix. periodt πŸ’…

🌸 Purpose 🌸

okay so DLAE2 computes the eigenvalues of this 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. no cap 🫢

πŸ¦‹ Parameters πŸ¦‹

  • A β€” DOUBLE PRECISION; the (1,1) element of the 2-by-2 matrix. slay.
  • B β€” DOUBLE PRECISION; the (1,2) and (2,1) elements of the 2-by-2 matrix.
  • C β€” DOUBLE PRECISION; the (2,2) element of the 2-by-2 matrix.
  • RT1 β€” DOUBLE PRECISION; the eigenvalue of larger absolute value.
  • RT2 β€” DOUBLE PRECISION; 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.
  • 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 dlae2.f.


🌈 Author 🌈

Generated automatically by Doxygen for LAPACK from the source code.


mwah πŸ’‹ that’s the whole page, bestie β€” source/version is LAPACK Version 3.12.0, and the page is SRC/dlae2.f(3); the footer doesn’t show a date, so no date to report 🫢✨

πŸ“¦ where this page comes from