# Class Inverse

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.
• ## Constructor Summary

Constructors
Constructor
Description
Inverse(Matrix A)
Constructs the inverse of a matrix.
Inverse(Matrix A, double epsilon)
Constructs the inverse of a matrix.
• ## Method Summary

### Methods inherited from class dev.nm.algebra.linear.matrix.doubles.matrixtype.dense.DenseMatrix

add, deepCopy, equals, get, getColumn, getColumn, getRow, getRow, hashCode, minus, multiply, multiply, nCols, nRows, ONE, opposite, scaled, set, setColumn, setRow, t, toDense, toString, ZERO

### Methods inherited from class java.lang.Object

clone, finalize, getClass, notify, notifyAll, wait, wait, wait

### Methods inherited from interface dev.nm.algebra.linear.matrix.doubles.Matrix

toCSV
• ## 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