# Uses of Interface
org.apache.commons.math3.linear.AnyMatrix

Packages that use AnyMatrix
Package
Description
org.apache.commons.math3.linear
Linear algebra support.

## Uses of AnyMatrix in org.apache.commons.math3.linear

Subinterfaces of AnyMatrix in org.apache.commons.math3.linear
Modifier and Type
Interface
Description
`interface`
`FieldMatrix<T extends FieldElement<T>>`
Interface defining field-valued matrix with basic algebraic operations.
`interface`
`RealMatrix`
Interface defining a real-valued matrix with basic algebraic operations.
`interface`
`SparseRealMatrix`
Marker interface for `RealMatrix` implementations that require sparse backing storage
Classes in org.apache.commons.math3.linear that implement AnyMatrix
Modifier and Type
Class
Description
`class`
`AbstractFieldMatrix<T extends FieldElement<T>>`
Basic implementation of `FieldMatrix` methods regardless of the underlying storage.
`class`
`AbstractRealMatrix`
Basic implementation of RealMatrix methods regardless of the underlying storage.
`class`
`Array2DRowFieldMatrix<T extends FieldElement<T>>`
Implementation of FieldMatrix<T> using a `FieldElement`[][] array to store entries.
`class`
`Array2DRowRealMatrix`
Implementation of `RealMatrix` using a `double[][]` array to store entries.
`class`
`BlockFieldMatrix<T extends FieldElement<T>>`
Cache-friendly implementation of FieldMatrix using a flat arrays to store square blocks of the matrix.
`class`
`BlockRealMatrix`
Cache-friendly implementation of RealMatrix using a flat arrays to store square blocks of the matrix.
`class`
`DiagonalMatrix`
Implementation of a diagonal matrix.
`class`
`OpenMapRealMatrix`
Sparse matrix implementation based on an open addressed map.
`class`
`SparseFieldMatrix<T extends FieldElement<T>>`
Sparse matrix implementation based on an open addressed map.
Methods in org.apache.commons.math3.linear with parameters of type AnyMatrix
Modifier and Type
Method
Description
`static void`
MatrixUtils.`checkAdditionCompatible(AnyMatrix left, AnyMatrix right)`
Check if matrices are addition compatible.
`static void`
MatrixUtils.`checkColumnIndex(AnyMatrix m, int column)`
Check if a column index is valid.
`static void`
MatrixUtils.`checkMatrixIndex(AnyMatrix m, int row, int column)`
Check if matrix indices are valid.
`static void`
MatrixUtils.`checkMultiplicationCompatible(AnyMatrix left, AnyMatrix right)`
Check if matrices are multiplication compatible
`static void`
MatrixUtils.`checkRowIndex(AnyMatrix m, int row)`
Check if a row index is valid.
`static void`
MatrixUtils.`checkSubMatrixIndex(AnyMatrix m, int[] selectedRows, int[] selectedColumns)`
Check if submatrix ranges indices are valid.
`static void`
MatrixUtils.`checkSubMatrixIndex(AnyMatrix m, int startRow, int endRow, int startColumn, int endColumn)`
Check if submatrix ranges indices are valid.
`static void`
MatrixUtils.`checkSubtractionCompatible(AnyMatrix left, AnyMatrix right)`
Check if matrices are subtraction compatible