|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectbaseCode.dataStructure.matrix.AbstractNamedMatrix
baseCode.dataStructure.matrix.AbstractNamedDoubleMatrix
baseCode.dataStructure.matrix.DenseDoubleMatrix2DNamed
A matrix of doubles that knows about row and column names.
Copyright (c) 2004
Columbia University
| Constructor Summary | |
DenseDoubleMatrix2DNamed(double[][] T)
|
|
DenseDoubleMatrix2DNamed(int rows,
int cols)
|
|
| Method Summary | |
int |
columns()
Get the number of columns the matrix has. |
DenseDoubleMatrix2DNamed |
copy()
Make a copy of a matrix. |
double |
get(int row,
int column)
|
double[] |
getCol(int col)
Return a copy of a given column. |
double[] |
getColByName(java.lang.String s)
Return a copy of a given column. |
java.lang.Object[] |
getColObj(int col)
|
double |
getQuick(int row,
int column)
|
double[] |
getRow(int row)
Return a reference to a specific row. |
cern.colt.list.DoubleArrayList |
getRowArrayList(int i)
|
double[] |
getRowByName(java.lang.String s)
Return a reference to a specific row. |
java.lang.Object[] |
getRowObj(int row)
Get a row in the matrix as a generic Object[]. |
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,
double value)
|
void |
set(int row,
int col,
java.lang.Object value)
Set a value in the matrix. |
void |
setQuick(int row,
int column,
double value)
|
int |
size()
|
double[][] |
toArray()
|
java.lang.String |
toString()
|
cern.colt.matrix.DoubleMatrix1D |
viewColumn(int column)
|
cern.colt.matrix.DoubleMatrix1D |
viewRow(int row)
|
| Methods inherited from class baseCode.dataStructure.matrix.AbstractNamedMatrix |
addColumnName, addColumnName, addRowName, addRowName, containsColumnName, containsRowName, getColIndexByName, getColName, getColNames, getRowIndexByName, getRowName, getRowNameMapIterator, getRowNames, hasColNames, hasRow, hasRowNames, numMissing, setColumnNames, setRowNames |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DenseDoubleMatrix2DNamed(double[][] T)
T - double[][]
public DenseDoubleMatrix2DNamed(int rows,
int cols)
rows - intcols - int| Method Detail |
public double[] getRow(int row)
getRow in class AbstractNamedDoubleMatrixrow - int
public double[] getRowByName(java.lang.String s)
getRowByName in class AbstractNamedDoubleMatrixs - String
public double[] getCol(int col)
col - int
public double[] getColByName(java.lang.String s)
public java.lang.Object[] getRowObj(int row)
NamedMatrix
getRowObj in interface NamedMatrixgetRowObj in class AbstractNamedDoubleMatrixpublic java.lang.Object[] getColObj(int col)
getColObj in interface NamedMatrixgetColObj in class AbstractNamedDoubleMatrixpublic java.lang.String toString()
public void set(int row,
int col,
java.lang.Object value)
NamedMatrix
set in interface NamedMatrixset in class AbstractNamedDoubleMatrixpublic DenseDoubleMatrix2DNamed copy()
public boolean isMissing(int i,
int j)
NamedMatrix
isMissing in interface NamedMatrixisMissing in class AbstractNamedDoubleMatrix
public double get(int row,
int column)
get in class AbstractNamedDoubleMatrixrow - intcolumn - int
public double getQuick(int row,
int column)
getQuick in class AbstractNamedDoubleMatrixrow - intcolumn - int
DenseDoubleMatrix2D.getQuick(int, int)
public void set(int row,
int column,
double value)
set in class AbstractNamedDoubleMatrixrow - intcolumn - intvalue - double
public void setQuick(int row,
int column,
double value)
row - intcolumn - intvalue - doubleDenseDoubleMatrix2D.setQuick(int, int, double)public cern.colt.matrix.DoubleMatrix1D viewColumn(int column)
column - int
public cern.colt.matrix.DoubleMatrix1D viewRow(int row)
viewRow in class AbstractNamedDoubleMatrixrow - int
DoubleMatrix2D.viewRow(int)public int columns()
NamedMatrix
columns in interface NamedMatrixcolumns in class AbstractNamedDoubleMatrixAbstractMatrix2D.columns()public int rows()
NamedMatrix
rows in interface NamedMatrixrows in class AbstractNamedDoubleMatrixAbstractMatrix2D#rows()public int size()
AbstractMatrix2D#size()public double[][] toArray()
public cern.colt.list.DoubleArrayList getRowArrayList(int i)
getRowArrayList in class AbstractNamedDoubleMatrix
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||