trait Factorization extends AnyRef
The Factorization
trait is the template for classes implementing various forms
of matrix factorization.
- Alphabetic
- By Inheritance
- Factorization
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
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'.
-
abstract
def
factors: (MatriD, MatriD)
Return the two factored matrices.
-
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
-
def
factor1(): MatriD
Factor a matrix into the product of two matrices, e.g., 'a = l * l.t', returning only the first matrix.
-
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.
-
def
factor2(): MatriD
Factor a matrix into the product of two matrices, e.g., 'a = l * l.t', returning only the second matrix.