public class ObjectMatrixImpl<R,C,V> extends AbstractMatrix<R,C,V> implements ObjectMatrix<R,C,V>
MAX_ROWS_TO_PRINT
Constructor and Description |
---|
ObjectMatrixImpl(int x,
int y) |
Modifier and Type | Method and Description |
---|---|
int |
columns()
Get the number of columns the matrix has.
|
V |
get(int row,
int column) |
Object |
get(R row,
C column) |
V |
getByKeys(R r,
C c) |
V[] |
getColumn(int col) |
V |
getEntry(int row,
int column) |
V[] |
getRow(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,
V value) |
void |
setByKeys(R r,
C c,
V v) |
int |
size() |
ObjectMatrix<R,C,V> |
subset(int startRow,
int startCol,
int numRow,
int numCol) |
ObjectMatrixImpl<R,C,V> |
subsetColumns(List<C> columns) |
String |
toString() |
cern.colt.matrix.ObjectMatrix1D |
viewColumn(int column) |
cern.colt.matrix.ObjectMatrix1D |
viewRow(int row) |
addColumnName, addRowName, asDoubles, assign, checkColRange, checkRowRange, containsColumnName, containsRowName, getColIndexByName, getColName, getColNames, getRowIndexByName, getRowName, getRowNameMapIterator, getRowNames, hasColNames, hasMissingValues, hasRow, hasRowNames, numMissing, setColumnName, setColumnNames, setRowName, setRowNames
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addColumnName, asDoubles, assign, containsColumnName, containsRowName, getColIndexByName, getColName, getColNames, getRowIndexByName, getRowName, getRowNameMapIterator, getRowNames, hasColNames, hasRow, hasRowNames, numMissing, setColumnName, setColumnNames, setRowName, setRowNames
public ObjectMatrixImpl<R,C,V> subsetColumns(List<C> columns)
subsetColumns
in interface ObjectMatrix<R,C,V>
columns
- public int columns()
Matrix2D
public V get(int row, int column)
get
in interface ObjectMatrix<R,C,V>
row
- column
- public V getEntry(int row, int column)
public boolean isMissing(int i, int j)
Matrix2D
public int rows()
Matrix2D
public int size()
size
in class AbstractMatrix<R,C,V>
public ObjectMatrix<R,C,V> subset(int startRow, int startCol, int numRow, int numCol)
subset
in interface ObjectMatrix<R,C,V>
public cern.colt.matrix.ObjectMatrix1D viewColumn(int column)
column
- public cern.colt.matrix.ObjectMatrix1D viewRow(int row)
row
- Copyright © 2003–2023 UBC Michael Smith Laboratories. All rights reserved.