Fac_Inverse

scalation.mathstat.Fac_Inverse
See theFac_Inverse companion object
class Fac_Inverse(a: MatrixD) extends Factorization

The Fac_Inverse 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.

Value parameters

a

the given n-by-n square matrix

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

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.

Attributes

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

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

Attributes

Efficient calculation of inverse matrix a^-1 from existing factorization. a * a^-1 = I

Efficient calculation of inverse matrix a^-1 from existing factorization. a * a^-1 = I

Attributes

def solve(b: VectorD): VectorD

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

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

Value parameters

b

the constant vector

Attributes

Inherited methods

def factor1(): MatrixD

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.

Attributes

Inherited from:
Factorization

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.

Attributes

Inherited from:
Factorization
def factor2(): MatrixD

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.

Attributes

Inherited from:
Factorization
inline def isFactored: Boolean

Return whether the matrix has been factored has aleady been factored.

Return whether the matrix has been factored has aleady been factored.

Attributes

Inherited from:
Factorization
def reset(): Unit

Reset by setting factored to false.

Reset by setting factored to false.

Attributes

Inherited from:
Factorization

Inherited fields

protected var factored: Boolean

Flag indicating whether the matrix has been factored

Flag indicating whether the matrix has been factored

Attributes

Inherited from:
Factorization