|
|||||||||||
| 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.SparseRaggedDoubleMatrix2DNamed
A sparse matrix class where the rows are ragged and compressed.
Copyright (c) 2004 Columbia University
| Constructor Summary | |
SparseRaggedDoubleMatrix2DNamed()
|
|
| Method Summary | |
void |
addRow(java.lang.String name,
cern.colt.matrix.DoubleMatrix1D matrix1D)
|
void |
addRow(java.lang.String name,
cern.colt.list.IntArrayList indexes,
cern.colt.list.DoubleArrayList values)
|
int |
columns()
Get the number of columns the matrix has. |
double |
get(int i,
int j)
|
java.lang.Object[] |
getColObj(int i)
|
double |
getQuick(int i,
int j)
|
double[] |
getRow(int i)
|
cern.colt.list.DoubleArrayList |
getRowArrayList(int row)
This gives just the list of values in the row - make sure this is what you want. |
java.lang.Object[] |
getRowObj(int i)
Get a row in the matrix as a generic Object[]. |
boolean |
isMissing(int i,
int j)
(non-Javadoc) Note that in a sparse matrix, zero values are considered "missing"! |
int |
rows()
Get the number of rows the matrix has |
void |
set(int i,
int j,
double d)
|
void |
set(int i,
int j,
java.lang.Object val)
Set a value in the matrix. |
java.lang.String |
toString()
|
cern.colt.matrix.DoubleMatrix1D |
viewRow(int i)
|
| Methods inherited from class baseCode.dataStructure.matrix.AbstractNamedDoubleMatrix |
getRowByName |
| 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 SparseRaggedDoubleMatrix2DNamed()
| Method Detail |
public int rows()
NamedMatrix
rows in interface NamedMatrixrows in class AbstractNamedDoubleMatrixpublic int columns()
NamedMatrix
columns in interface NamedMatrixcolumns in class AbstractNamedDoubleMatrix
public void set(int i,
int j,
java.lang.Object val)
NamedMatrix
set in interface NamedMatrixset in class AbstractNamedDoubleMatrix
public void set(int i,
int j,
double d)
set in class AbstractNamedDoubleMatrixi - rowj - columnd - valuepublic java.lang.Object[] getRowObj(int i)
NamedMatrix
getRowObj in interface NamedMatrixgetRowObj in class AbstractNamedDoubleMatrixpublic java.lang.Object[] getColObj(int i)
getColObj in interface NamedMatrixgetColObj in class AbstractNamedDoubleMatrix
public boolean isMissing(int i,
int j)
isMissing in interface NamedMatrixisMissing in class AbstractNamedDoubleMatrixNamedMatrix.isMissing(int, int)public java.lang.String toString()
public double get(int i,
int j)
get in class AbstractNamedDoubleMatrixpublic cern.colt.list.DoubleArrayList getRowArrayList(int row)
getRowArrayList in class AbstractNamedDoubleMatrixrow -
public cern.colt.matrix.DoubleMatrix1D viewRow(int i)
viewRow in class AbstractNamedDoubleMatrixi -
public double[] getRow(int i)
getRow in class AbstractNamedDoubleMatrix
public void addRow(java.lang.String name,
cern.colt.list.IntArrayList indexes,
cern.colt.list.DoubleArrayList values)
name - indexes - values -
public void addRow(java.lang.String name,
cern.colt.matrix.DoubleMatrix1D matrix1D)
matrix1D -
public double getQuick(int i,
int j)
getQuick in class AbstractNamedDoubleMatrixi - j -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||