public class IntegerMatrix<R,C> extends AbstractMatrix<R,C,Integer> implements PrimitiveMatrix<R,C,Integer>
MAX_ROWS_TO_PRINT| Constructor and Description |
|---|
IntegerMatrix(int x,
int y) |
| Modifier and Type | Method and Description |
|---|---|
int |
columns()
Get the number of columns the matrix has.
|
Integer |
get(int row,
int column) |
Integer |
getByKeys(R r,
C c) |
Integer[] |
getColObj(int col) |
Integer[] |
getColumn(int col) |
Integer |
getEntry(int row,
int column) |
Integer |
getObject(int row,
int col) |
Integer[] |
getRow(int row) |
Integer[] |
getRowObj(int row) |
boolean |
isMissing(int i,
int j)
Check if the value at a given index is missing.
|
int |
rows()
Get the number of rows the matrix has
|
void |
set(int row,
int column,
Integer value) |
void |
setByKeys(R r,
C c,
Integer v) |
void |
setObj(int row,
int column,
Integer value) |
int |
size() |
String |
toString() |
addColumnName, addRowName, asDoubles, assign, checkColRange, checkRowRange, containsColumnName, containsRowName, getColIndexByName, getColName, getColNames, getRowIndexByName, getRowName, getRowNameMapIterator, getRowNames, hasColNames, hasMissingValues, hasRow, hasRowNames, numMissing, setColumnName, setColumnNames, setRowName, setRowNamesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddColumnName, asDoubles, assign, containsColumnName, containsRowName, getColIndexByName, getColName, getColNames, getRowIndexByName, getRowName, getRowNameMapIterator, getRowNames, hasColNames, hasRow, hasRowNames, numMissing, setColumnName, setColumnNames, setRowName, setRowNamespublic int columns()
Matrix2Dpublic Integer get(int row, int column)
row - column - public Integer[] getColObj(int col)
getColObj in interface PrimitiveMatrix<R,C,Integer>public Integer[] getColumn(int col)
public Integer getEntry(int row, int column)
public Integer getObject(int row, int col)
getObject in interface PrimitiveMatrix<R,C,Integer>public Integer[] getRow(int row)
public Integer[] getRowObj(int row)
getRowObj in interface PrimitiveMatrix<R,C,Integer>public boolean isMissing(int i,
int j)
Matrix2Dpublic int rows()
Matrix2Dpublic void set(int row,
int column,
Integer value)
public void setObj(int row,
int column,
Integer value)
row - column - value - public int size()
size in class AbstractMatrix<R,C,Integer>Copyright © 2003–2023 UBC Michael Smith Laboratories. All rights reserved.