|
|||||||||||
| 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.SparseDoubleMatrix2DNamed
Title: SparseDoubleMatrix2DNamed
Description: A sparse matrix that knows about row and column names.
Copyright (c) 2004
Institution:: Columbia University
| Constructor Summary | |
SparseDoubleMatrix2DNamed(double[][] T)
|
|
SparseDoubleMatrix2DNamed(int rows,
int cols)
|
|
| Method Summary | |
int |
cardinality()
|
int |
columns()
Get the number of columns the matrix has. |
void |
ensureCapacity(int minNonZeros)
|
double |
get(int row,
int column)
|
double[] |
getCol(int col)
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)
|
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()
|
java.lang.String |
toString()
|
void |
trimToSize()
|
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 |
| Methods inherited from interface baseCode.dataStructure.matrix.NamedMatrix |
addColumnName, addRowName, containsColumnName, containsRowName, getColIndexByName, getColName, getColNames, getRowIndexByName, getRowName, getRowNameMapIterator, getRowNames, hasColNames, hasRow, hasRowNames, numMissing, setColumnNames, setRowNames |
| Constructor Detail |
public SparseDoubleMatrix2DNamed(double[][] T)
T - double[][]
public SparseDoubleMatrix2DNamed(int rows,
int cols)
rows - intcols - int| Method Detail |
public void set(int row,
int col,
java.lang.Object value)
NamedMatrix
set in interface NamedMatrixset in class AbstractNamedDoubleMatrixpublic double[] getRow(int row)
getRow in class AbstractNamedDoubleMatrixrow - int
public double[] getCol(int col)
col - int
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 double[] getRowByName(java.lang.String s)
getRowByName in class AbstractNamedDoubleMatrixs - String
public boolean isMissing(int i,
int j)
NamedMatrix
isMissing in interface NamedMatrixisMissing in class AbstractNamedDoubleMatrixpublic int columns()
NamedMatrix
columns in interface NamedMatrixcolumns in class AbstractNamedDoubleMatrix
public double get(int row,
int column)
get in class AbstractNamedDoubleMatrixrow - column -
public double getQuick(int row,
int column)
getQuick in class AbstractNamedDoubleMatrixrow - column -
public int rows()
NamedMatrix
rows in interface NamedMatrixrows in class AbstractNamedDoubleMatrix
public void set(int row,
int column,
double value)
set in class AbstractNamedDoubleMatrixrow - column - value -
public void setQuick(int row,
int column,
double value)
row - column - value - public cern.colt.matrix.DoubleMatrix1D viewColumn(int column)
column -
public cern.colt.matrix.DoubleMatrix1D viewRow(int row)
viewRow in class AbstractNamedDoubleMatrixrow -
public int cardinality()
public void ensureCapacity(int minNonZeros)
minNonZeros - public int size()
public void trimToSize()
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 | ||||||||||