Class IntegerMatrix<R,C>
java.lang.Object
ubic.gemma.core.util.matrix.AbstractMatrix<R,C,Integer>
ubic.gemma.core.util.matrix.IntegerMatrix<R,C>
- All Implemented Interfaces:
Serializable, Matrix2D<R,C, Integer>, PrimitiveMatrix<R, C, Integer>
public class IntegerMatrix<R,C>
extends AbstractMatrix<R,C,Integer>
implements PrimitiveMatrix<R,C,Integer>
- 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) Integer[]getColObj(int col) Integer[]getColumn(int col) getEntry(int row, int column) getObject(int row, int col) Integer[]getRow(int row) Integer[]getRowObj(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 hasvoidvoidvoidintsize()toString()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
-
IntegerMatrix
public IntegerMatrix(int x, int y)
-
-
Method Details
-
columns
-
get
- Parameters:
row-column-- Returns:
-
getByKeys
-
getColObj
-
getColumn
-
getEntry
-
getObject
-
getRow
-
getRowObj
-
isMissing
-
rows
-
set
-
setByKeys
-
setObj
- Parameters:
row-column-value-
-
size
public int size()- Specified by:
sizein classAbstractMatrix<R,C, Integer> - Returns:
-
toString
-