public abstract class DoubleMatrix<R,C> extends AbstractMatrix<R,C,Double> implements PrimitiveMatrix<R,C,Double>
MAX_ROWS_TO_PRINT
Constructor and Description |
---|
DoubleMatrix() |
Modifier and Type | Method and Description |
---|---|
abstract double[][] |
asArray() |
abstract DoubleMatrix<R,C> |
copy()
Create a deep copy of this
|
abstract double |
get(int j,
int i) |
Double |
getByKeys(R r,
C c) |
abstract DoubleMatrix<R,C> |
getColRange(int startCol,
int endCol) |
abstract double[] |
getColumn(int j) |
double[] |
getColumnByName(C s) |
Double |
getEntry(int row,
int column) |
double[][] |
getRawMatrix() |
abstract double[] |
getRow(int i) |
abstract cern.colt.list.DoubleArrayList |
getRowArrayList(int i) |
double[] |
getRowByName(R s) |
abstract DoubleMatrix<R,C> |
getRowRange(int startRow,
int endRow) |
void |
setByKeys(R r,
C c,
Double v) |
List<R> |
sortByColumnAbsoluteValues(int i,
boolean descending) |
abstract DoubleMatrix<R,C> |
subsetColumns(List<C> columns)
Create a copy of this matrix with only the selected columns, in the selected order.
|
abstract DoubleMatrix<R,C> |
subsetRows(List<R> rowNames)
Create a copy of this matrix with only the selected rows, in the selected order.
|
String |
toString() |
abstract DoubleMatrix<C,R> |
transpose() |
abstract cern.colt.matrix.DoubleMatrix1D |
viewColumn(int column) |
abstract cern.colt.matrix.DoubleMatrix1D |
viewRow(int j) |
addColumnName, addRowName, asDoubles, assign, checkColRange, checkRowRange, containsColumnName, containsRowName, getColIndexByName, getColName, getColNames, getRowIndexByName, getRowName, getRowNameMapIterator, getRowNames, hasColNames, hasMissingValues, hasRow, hasRowNames, numMissing, setColumnName, setColumnNames, setRowName, setRowNames, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getColObj, getObject, getRowObj
addColumnName, asDoubles, assign, columns, containsColumnName, containsRowName, getColIndexByName, getColName, getColNames, getRowIndexByName, getRowName, getRowNameMapIterator, getRowNames, hasColNames, hasRow, hasRowNames, isMissing, numMissing, rows, set, setColumnName, setColumnNames, setRowName, setRowNames
public abstract double[][] asArray()
public abstract DoubleMatrix<R,C> copy()
public abstract double get(int j, int i)
j
- i
- public abstract DoubleMatrix<R,C> getColRange(int startCol, int endCol)
startCol
- inclusive, numbered from zeroendCol
- inclusive, numbered from zeropublic abstract double[] getColumn(int j)
public double[] getColumnByName(C s)
s
- Stringpublic Double getEntry(int row, int column)
public double[][] getRawMatrix()
public abstract double[] getRow(int i)
public abstract cern.colt.list.DoubleArrayList getRowArrayList(int i)
public double[] getRowByName(R s)
s
- Stringpublic abstract DoubleMatrix<R,C> getRowRange(int startRow, int endRow)
startRow
- inclusive, numbered from zeroendRow
- inclusivepublic List<R> sortByColumnAbsoluteValues(int i, boolean descending)
i
- descending
- public abstract DoubleMatrix<R,C> subsetColumns(List<C> columns)
columns
- public abstract DoubleMatrix<R,C> subsetRows(List<R> rowNames)
rowNames
- public abstract DoubleMatrix<C,R> transpose()
public abstract cern.colt.matrix.DoubleMatrix1D viewColumn(int column)
public abstract cern.colt.matrix.DoubleMatrix1D viewRow(int j)
j
- Copyright © 2003–2023 UBC Michael Smith Laboratories. All rights reserved.