Class ObjectMatrixImpl<R,C,V>
java.lang.Object
ubic.gemma.core.util.matrix.AbstractMatrix<R,C,V>
ubic.gemma.core.util.matrix.ObjectMatrixImpl<R,C,V>
- All Implemented Interfaces:
Serializable, Matrix2D<R,C, V>, ObjectMatrix<R, C, V>
Matrix that can hold any type of object
- Author:
- pavlidis
- See Also:
-
Field Summary
Fields inherited from class AbstractMatrix
MAX_ROWS_TO_PRINT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcolumns()Get the number of columns the matrix has.get(int row, int column) V[]getColumn(int col) getEntry(int row, int column) V[]getRow(int row) booleanisMissing(int i, int j) Check if the value at a given index is missing.introws()Get the number of rows the matrix hasvoidvoidintsize()ObjectMatrix<R, C, V> subset(int startRow, int startCol, int numRow, int numCol) subsetColumns(List<C> columns) toString()viewColumn(int column) viewRow(int row) Methods inherited from class AbstractMatrix
addColumnName, addRowName, asDoubles, assign, checkColRange, checkRowRange, containsColumnName, containsRowName, getColIndexByName, getColName, getColNames, getRowIndexByName, getRowName, getRowNameMapIterator, getRowNames, hasColNames, hasMissingValues, hasRow, hasRowNames, numMissing, setColumnName, setColumnNames, setRowName, setRowNamesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Matrix2D
addColumnName, asDoubles, assign, containsColumnName, containsRowName, getColIndexByName, getColName, getColNames, getRowIndexByName, getRowName, getRowNameMapIterator, getRowNames, hasColNames, hasRow, hasRowNames, numMissing, setColumnName, setColumnNames, setRowName, setRowNames
-
Constructor Details
-
ObjectMatrixImpl
public ObjectMatrixImpl(int x, int y)
-
-
Method Details
-
subsetColumns
- Specified by:
subsetColumnsin interfaceObjectMatrix<R,C, V> - Parameters:
columns-- Returns:
-
columns
-
get
-
get
-
getByKeys
-
getColumn
-
getEntry
-
getRow
-
isMissing
-
rows
-
set
-
setByKeys
-
size
public int size()- Specified by:
sizein classAbstractMatrix<R,C, V> - Returns:
-
subset
- Specified by:
subsetin interfaceObjectMatrix<R,C, V> - Parameters:
startRow-startCol-numRow-numCol-- Returns:
-
toString
-
viewColumn
- Parameters:
column-- Returns:
-
viewRow
- Parameters:
row-- Returns:
-