Packages

object Eigen_2by2 extends Error

The Eigen_2by2 object provides simple methods for computing eigenvalues and eigenvectors for 2-by-2 matrices.

Linear Supertypes
Error, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Eigen_2by2
  2. Error
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. 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

  2. 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

  3. 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