Interface Matrix.Factorization

All Known Implementing Classes:
DenseMatrix.CholeskyFactorization, DenseMatrix.EigenDecomposition, DenseMatrix.LUFactorization
Enclosing interface:
Matrix

public static interface Matrix.Factorization
Interface for matrix factorizations.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Compute the matrix determinant of the factorized matrix.
    int
    First dimension of the factorized matrix.
    int
    Second dimension of the factorized matrix.
    default Matrix
    Generates the inverse of the matrix with this factorization.
    solve(Matrix matrix)
    Solves the system A * X = Y, where Y is the input matrix, and A is the matrix which produced this factorization.
    solve(SGDVector vector)
    Solves a system of linear equations A * b = y, where y is the input vector, A is the matrix which produced this factorization, and b is the returned value.
  • Method Details

    • dim1

      int dim1()
      First dimension of the factorized matrix.
      Returns:
      First dimension size.
    • dim2

      int dim2()
      Second dimension of the factorized matrix.
      Returns:
      Second dimension size.
    • determinant

      double determinant()
      Compute the matrix determinant of the factorized matrix.
      Returns:
      The matrix determinant.
    • solve

      SGDVector solve(SGDVector vector)
      Solves a system of linear equations A * b = y, where y is the input vector, A is the matrix which produced this factorization, and b is the returned value.
      Parameters:
      vector - The input vector y.
      Returns:
      The vector b.
    • solve

      Matrix solve(Matrix matrix)
      Solves the system A * X = Y, where Y is the input matrix, and A is the matrix which produced this factorization.
      Parameters:
      matrix - The input matrix Y.
      Returns:
      The matrix X.
    • inverse

      default Matrix inverse()
      Generates the inverse of the matrix with this factorization.
      Returns:
      The matrix inverse.