object Eigen_2by2 extends Error
The Eigen_2by2
object provides simple methods for computing eigenvalues and
eigenvectors for 2-by-2 matrices.
- Alphabetic
- By Inheritance
- Eigen_2by2
- Error
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
eigenvalues(a: MatrixD): VectorD
Compute the eigenvalues for the 2-by-2 matrix 'a' by finding the roots of the characteristic polynomial:
Compute the eigenvalues for the 2-by-2 matrix 'a' by finding the roots of the characteristic polynomial:
(a00 - l) * (a11 - l) - a01 * a10 = 0
where l is an eigenvalue (2 possible solutions).
- a
the 2-by-2 matrix whose eigenvalues are sought
-
def
eigenvectors(a: MatrixD, l: VectorD): MatrixD
Compute the eigenvectors for the the 2-by-2 matrix 'a'.
Compute the eigenvectors for the the 2-by-2 matrix 'a'.
- a
the 2-by-2 matrix whose eigenvectors are sought
- l
the eigenvalues
-
final
def
flaw(method: String, message: String): Unit
Show the flaw by printing the error message.
Show the flaw by printing the error message.
- method
the method where the error occurred
- message
the error message
- Definition Classes
- Error