Interface Matrix
-
- All Known Implementing Classes:
DoubleArray
,DoubleMatrix
,IntArray
,LongArray
,TridiagonalMatrix
public interface Matrix
Base interface for all matrix types.An n-dimensional matrix of elements of a fixed size. A 1-dimensional matrix is typically known as an array.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
dimensions()
Gets the number of dimensions of the matrix.int
size()
Gets the size of the matrix.
-
-
-
Method Detail
-
dimensions
int dimensions()
Gets the number of dimensions of the matrix.Each matrix type has a fixed number of dimensions, returned by this method.
- Returns:
- the dimensions of the matrix
-
size
int size()
Gets the size of the matrix.This is the total number of elements in the matrix.
- Returns:
- the size of the matrix
-
-