Packages

class Fac_LQ extends Factorization with Error

The Fac_LQ class provides methods to factor an 'm-by-n' matrix 'aa' into the product of two matrices, when m < n.

'l' - an 'm-by-m' left lower triangular matrix 'q' - an 'm-by-n' orthogonal matrix and

such that 'aa = l * q'. Note, orthogonal means that 'q.t * q = I'.

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

Instance Constructors

  1. new Fac_LQ(aa: MatriD)

    aa

    the matrix to be factor into l and q

Value Members

  1. def factor(): Fac_LQ

    Factor matrix 'art' into the product of two matrices, 'art = qt * rt'.

    Factor matrix 'art' into the product of two matrices, 'art = qt * rt'. Then compute 'r' and 'q'.

    Definition Classes
    Fac_LQFactorization
    See also

    http://math.stackexchange.com/questions/1640695/rq-decomposition

  2. def factor1(): MatriD

    Factor a matrix into the product of two matrices, e.g., 'a = l * l.t', returning only the first matrix.

    Factor a matrix into the product of two matrices, e.g., 'a = l * l.t', returning only the first matrix.

    Definition Classes
    Factorization
  3. def factor12(): (MatriD, MatriD)

    Factor a matrix into the product of two matrices, e.g., 'a = l * l.t' or a = q * r, returning both the first and second matrices.

    Factor a matrix into the product of two matrices, e.g., 'a = l * l.t' or a = q * r, returning both the first and second matrices.

    Definition Classes
    Factorization
  4. def factor2(): MatriD

    Factor a matrix into the product of two matrices, e.g., 'a = l * l.t', returning only the second matrix.

    Factor a matrix into the product of two matrices, e.g., 'a = l * l.t', returning only the second matrix.

    Definition Classes
    Factorization
  5. def factors: (MatriD, MatriD)

    Return the two factored matrices.

    Return the two factored matrices.

    Definition Classes
    Fac_LQFactorization
  6. 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
  7. def solve(b: VectoD): VectoD

    Solve for 'x' in 'aa*x = b' using the 'QR' Factorization 'aa = l*q' via 'x = q.t * l.inv * b'.

    Solve for 'x' in 'aa*x = b' using the 'QR' Factorization 'aa = l*q' via 'x = q.t * l.inv * b'. FIX: need method that does not require calling 'inverse'

    b

    the constant vector

    Definition Classes
    Fac_LQFactorization