java.lang.Object
dev.nm.algebra.linear.matrix.doubles.matrixtype.dense.DenseMatrix
dev.nm.algebra.linear.matrix.doubles.operation.Inverse
All Implemented Interfaces:
Matrix, MatrixAccess, MatrixRing, MatrixTable, Densifiable, AbelianGroup<Matrix>, Monoid<Matrix>, Ring<Matrix>, Table, DeepCopyable

public class Inverse extends DenseMatrix
For a square matrix A, the inverse, A-1, if exists, satisfies
A.multiply(A.inverse()) == A.ONE()
There are multiple ways to compute the inverse of a matrix. They are,
  • an analytic solution for small matrices, e.g., 2x2,
  • LU Decomposition,
  • the Moore-Penrose pseudoinverse.
See Also:
  • Constructor Details

    • Inverse

      public Inverse(Matrix A)
      Constructs the inverse of a matrix.
      Parameters:
      A - a matrix
    • Inverse

      public Inverse(Matrix A, double epsilon)
      Constructs the inverse of a matrix.
      Parameters:
      A - a matrix
      epsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0