Packages

class Fac_Inv[MatT <: MatriD] extends Factorization with Error

The Fac_Inv class provides methods to factor an 'n-by-n' identity matrix 'I' into the product of two matrices 'a' and 'a^-1'

a * a^-1 = I

where 'a' is the given matrix and 'a^-1' is its inverse.

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

Instance Constructors

  1. new Fac_Inv(a: MatT)

    a

    the given n-by-n square matrix

Value Members

  1. def factor(): Fac_Inv[MatT]

    Factor matrix 'I' into the product of 'a' and 'a^-1' by computing the inverse of 'a'.

    Factor matrix 'I' into the product of 'a' and 'a^-1' by computing the inverse of 'a'.

    Definition Classes
    Fac_InvFactorization
  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 both the matrices 'a' and its inverse 'a^-1'.

    Return both the matrices 'a' and its inverse 'a^-1'.

    Definition Classes
    Fac_InvFactorization
  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

    Use the inverse matrix 'ai' to solve a system of equations 'a * x = b'.

    Use the inverse matrix 'ai' to solve a system of equations 'a * x = b'. Return the solution vector 'x'.

    b

    the constant vector

    Definition Classes
    Fac_InvFactorization