Package org.hipparchus.linear
Interface AnyMatrix
-
- All Known Subinterfaces:
FieldMatrix<T>,RealMatrix,SparseRealMatrix
- All Known Implementing Classes:
AbstractFieldMatrix,AbstractRealMatrix,Array2DRowFieldMatrix,Array2DRowRealMatrix,BlockFieldMatrix,BlockRealMatrix,DiagonalMatrix,OpenMapRealMatrix,SparseFieldMatrix
public interface AnyMatrixInterface defining very basic matrix operations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetColumnDimension()Returns the number of columns in the matrix.intgetRowDimension()Returns the number of rows in the matrix.booleanisSquare()Is this a square matrix?
-
-
-
Method Detail
-
isSquare
boolean isSquare()
Is this a square matrix?- Returns:
- true if the matrix is square (rowDimension = columnDimension)
-
getRowDimension
int getRowDimension()
Returns the number of rows in the matrix.- Returns:
- rowDimension
-
getColumnDimension
int getColumnDimension()
Returns the number of columns in the matrix.- Returns:
- columnDimension
-
-