Packages

t

scalation.linalgebra

Factorization

trait Factorization extends AnyRef

The Factorization trait is the template for classes implementing various forms of matrix factorization.

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

Abstract Value Members

  1. abstract def factor(): Factorization

    Factor a matrix into the product of two matrices without returning the two factored matrices.

    Factor a matrix into the product of two matrices without returning the two factored matrices. Allows for example skipping the computation of the Q matrix in QR factorization when it is not needed, e.g., for regression. Class implementing the 'factor' method should set 'factored = true'.

  2. abstract def factors: (MatriD, MatriD)

    Return the two factored matrices.

  3. abstract def solve(b: VectoD): VectoD

    Solve a system of equations, e,g., 'a * x = b' for 'x', using the factored matrices, by first performing forward substitution and then backward substitution.

    Solve a system of equations, e,g., 'a * x = b' for 'x', using the factored matrices, by first performing forward substitution and then backward substitution. Must factor before calling 'solve'.

    b

    the constant vector

Concrete Value Members

  1. def factor1(): MatriD

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

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

  3. def factor2(): MatriD

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