|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--cern.colt.PersistentObject
|
+--cern.colt.matrix.impl.AbstractMatrix
|
+--cern.colt.matrix.impl.AbstractMatrix2D
|
+--cern.colt.matrix.DoubleMatrix2D
|
+--cern.colt.matrix.impl.DenseDoubleMatrix2D
|
+--edu.iu.iv.common.datamodels.matrixmodel.DenseDoubleMatrixModel
An adapter class that implements the DoubleMatrixModel interface and extends the
Cern Colt API's fast hashed implementation of a dense 2D matrix. Users new to to using matrices
are urged to use the methods defined by the interface rather than using the inherited methods
directly since this model is optimized for speed at the cost of error checking. Some methods such
as getQuick and setQuick do not do any bounds checking and hence the result
of such function calls is undefined in case of error.
We recommend you to read the documentation for the CERN Colt API.
DenseDoubleMatrix2D,
Serialized Form| Field Summary |
| Fields inherited from class cern.colt.PersistentObject |
serialVersionUID |
| Constructor Summary | |
DenseDoubleMatrixModel(double[][] values)
Creates a matrix and fills them with the elements of the array passed in. |
|
DenseDoubleMatrixModel(int numRows,
int numCols)
Creates a matrix with numRows rows and numCols columns and fills them with zero values. |
|
| Method Summary | |
java.lang.String |
getColumnLabel(int column)
Gets the label for the specified column. |
int |
getNumberOfColumns()
|
int |
getNumberOfRows()
|
java.lang.String |
getRowLabel(int row)
Gets the label for the specified row. |
void |
setColumnLabel(int column,
java.lang.String text)
Sets the label at the specified column to the specified text. |
void |
setRowLabel(int row,
java.lang.String text)
Sets the label of the specified row to the specified text. |
| Methods inherited from class cern.colt.matrix.impl.DenseDoubleMatrix2D |
assign, assign, assign, assign, assign, getQuick, like, like1D, setQuick, zAssign8Neighbors, zMult, zMult, zSum |
| Methods inherited from class cern.colt.matrix.DoubleMatrix2D |
aggregate, aggregate, cardinality, copy, equals, equals, forEachNonZero, get, getNonZeros, like, set, toArray, toString, viewColumn, viewColumnFlip, viewDice, viewPart, viewRow, viewRowFlip, viewSelection, viewSelection, viewSorted, viewStrides, zMult, zMult |
| Methods inherited from class cern.colt.matrix.impl.AbstractMatrix2D |
checkShape, checkShape, columns, rows, size, toStringShort |
| Methods inherited from class cern.colt.matrix.impl.AbstractMatrix |
ensureCapacity, trimToSize |
| Methods inherited from class cern.colt.PersistentObject |
clone |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.iu.iv.core.datamodels.matrixmodel.DoubleMatrixModel |
get, set |
| Constructor Detail |
public DenseDoubleMatrixModel(int numRows,
int numCols)
numRows - The number of rows for this matrix.numCols - The number of columns for this matrix.public DenseDoubleMatrixModel(double[][] values)
values - The array containing matrix elements.| Method Detail |
public void setColumnLabel(int column,
java.lang.String text)
DoubleMatrixModel
setColumnLabel in interface DoubleMatrixModelcolumn - The column number.text - The text of the label.DoubleMatrixModel.setColumnLabel(int, java.lang.String)public java.lang.String getColumnLabel(int column)
DoubleMatrixModel
getColumnLabel in interface DoubleMatrixModelcolumn - The column number.
DoubleMatrixModel.getColumnLabel(int)
public void setRowLabel(int row,
java.lang.String text)
DoubleMatrixModel
setRowLabel in interface DoubleMatrixModelrow - The row number.text - The text of the label.DoubleMatrixModel.setRowLabel(int, java.lang.String)public java.lang.String getRowLabel(int row)
DoubleMatrixModel
getRowLabel in interface DoubleMatrixModelrow - The row number.
DoubleMatrixModel.getRowLabel(int)public int getNumberOfRows()
getNumberOfRows in interface DoubleMatrixModelpublic int getNumberOfColumns()
getNumberOfColumns in interface DoubleMatrixModel
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||