Package org.apache.commons.math.linear
Linear algebra support.
-
Interface Summary Interface Description AnyMatrix Interface defining very basic matrix operations.BigMatrix Deprecated. as of 2.0, replaced byFieldMatrix
with aBigReal
parameterCholeskyDecomposition An interface to classes that implement an algorithm to calculate the Cholesky decomposition of a real symmetric positive-definite matrix.DecompositionSolver Interface handling decomposition algorithms that can solve A × X = B.EigenDecomposition An interface to classes that implement an algorithm to calculate the eigen decomposition of a real matrix.FieldDecompositionSolver<T extends FieldElement<T>> Interface handling decomposition algorithms that can solve A × X = B.FieldLUDecomposition<T extends FieldElement<T>> An interface to classes that implement an algorithm to calculate the LU-decomposition of a real matrix.FieldMatrix<T extends FieldElement<T>> Interface defining field-valued matrix with basic algebraic operations.FieldMatrixChangingVisitor<T extends FieldElement<?>> Interface defining a visitor for matrix entries.FieldMatrixPreservingVisitor<T extends FieldElement<?>> Interface defining a visitor for matrix entries.FieldVector<T extends FieldElement<T>> Interface defining a field-valued vector with basic algebraic operations.LUDecomposition An interface to classes that implement an algorithm to calculate the LU-decomposition of a real matrix.QRDecomposition An interface to classes that implement an algorithm to calculate the QR-decomposition of a real matrix.RealMatrix Interface defining a real-valued matrix with basic algebraic operations.RealMatrixChangingVisitor Interface defining a visitor for matrix entries.RealMatrixPreservingVisitor Interface defining a visitor for matrix entries.RealVector Interface defining a real-valued vector with basic algebraic operations.SingularValueDecomposition An interface to classes that implement an algorithm to calculate the Singular Value Decomposition of a real matrix.SparseRealMatrix Marker interface forRealMatrix
implementations that require sparse backing storageSparseRealVector Marker interface for RealVectors that require sparse backing storage -
Class Summary Class Description AbstractFieldMatrix<T extends FieldElement<T>> Basic implementation ofFieldMatrix
methods regardless of the underlying storage.AbstractRealMatrix Basic implementation of RealMatrix methods regardless of the underlying storage.AbstractRealVector This class provides default basic implementations for many methods in theRealVector
interface.Array2DRowFieldMatrix<T extends FieldElement<T>> Implementation of FieldMatrixusing a FieldElement
[][] array to store entries.Array2DRowRealMatrix Implementation of RealMatrix using a double[][] array to store entries and LU decomposition to support linear system solution and inverse.ArrayFieldVector<T extends FieldElement<T>> This class implements theFieldVector
interface with aFieldElement
array.ArrayRealVector This class implements theRealVector
interface with a double array.BigMatrixImpl Deprecated. as of 2.0, replaced byArray2DRowFieldMatrix
with aBigReal
parameterBlockFieldMatrix<T extends FieldElement<T>> Cache-friendly implementation of FieldMatrix using a flat arrays to store square blocks of the matrix.BlockRealMatrix Cache-friendly implementation of RealMatrix using a flat arrays to store square blocks of the matrix.CholeskyDecompositionImpl Calculates the Cholesky decomposition of a matrix.DefaultFieldMatrixChangingVisitor<T extends FieldElement<T>> Default implementation of theFieldMatrixChangingVisitor
interface.DefaultFieldMatrixPreservingVisitor<T extends FieldElement<T>> Default implementation of theFieldMatrixPreservingVisitor
interface.DefaultRealMatrixChangingVisitor Default implementation of theRealMatrixChangingVisitor
interface.DefaultRealMatrixPreservingVisitor Default implementation of theRealMatrixPreservingVisitor
interface.EigenDecompositionImpl Calculates the eigen decomposition of a real symmetric matrix.FieldLUDecompositionImpl<T extends FieldElement<T>> Calculates the LUP-decomposition of a square matrix.LUDecompositionImpl Calculates the LUP-decomposition of a square matrix.MatrixUtils A collection of static methods that operate on or return matrices.OpenMapRealMatrix Sparse matrix implementation based on an open addressed map.OpenMapRealVector This class implements theRealVector
interface with aOpenIntToDoubleHashMap
backing store.QRDecompositionImpl Calculates the QR-decomposition of a matrix.RealMatrixImpl Deprecated. as of 2.0 replaced byArray2DRowRealMatrix
RealVector.Entry Class representing a modifiable entry in the vector.RealVectorFormat Formats a vector in components list format "{v0; v1; ...; vk-1}".SingularValueDecompositionImpl Calculates the compact Singular Value Decomposition of a matrix.SparseFieldMatrix<T extends FieldElement<T>> Sparse matrix implementation based on an open addressed map.SparseFieldVector<T extends FieldElement<T>> This class implements theFieldVector
interface with aOpenIntToFieldHashMap
backing store. -
Exception Summary Exception Description InvalidMatrixException Thrown when a system attempts an operation on a matrix, and that matrix does not satisfy the preconditions for the aforementioned operation.MatrixIndexException Thrown when an operation addresses a matrix coordinate (row, col) which is outside of the dimensions of a matrix.MatrixVisitorException Thrown when a visitor encounters an error while processing a matrix entry.NonSquareMatrixException Thrown when an operation defined only for square matrices is applied to non-square ones.NotPositiveDefiniteMatrixException This class represents exceptions thrown when a matrix expected to be positive definite is not.NotSymmetricMatrixException This class represents exceptions thrown when a matrix expected to be symmetric is notSingularMatrixException Thrown when a matrix is singular.