public class DoubleRow extends AbstractRow implements Serializable
Row of matrix for data type of double
Copyright: Copyright (c) 2005
Company: IST, Drexel University
length, loadFactor, row| Constructor and Description |
|---|
DoubleRow() |
DoubleRow(int row,
int num,
int[] columns,
double[] scores) |
| Modifier and Type | Method and Description |
|---|---|
Cell |
getCell(int column)
If the specified cell does not exist, it returns null.
|
double |
getDouble(int column) |
Cell |
getNonZeroCell(int index) |
int |
getNonZeroColumn(int index) |
int[] |
getNonZeroColumns() |
double |
getNonZeroDoubleScore(int index)
Return the double score of the index-th non-zero cell
|
double[] |
getNonZeroDoubleScores() |
int |
getNonZeroIntScore(int index)
Return the integer score of the index-th non-zero cell
|
void |
load(int row,
int num,
byte[] data)
This method will be called when the sparse matrix loads rows from a binary file.
|
void |
setNonZeroDoubleScore(int index,
double score) |
compareTo, getLoadFactor, getNonZeroNum, getRowIndex, setLoadFactorpublic DoubleRow()
public DoubleRow(int row,
int num,
int[] columns,
double[] scores)
public void load(int row,
int num,
byte[] data)
Rowpublic int[] getNonZeroColumns()
getNonZeroColumns in interface Rowpublic int getNonZeroColumn(int index)
getNonZeroColumn in interface Rowindex - the index-th non-zero cell in the currrent rowpublic double[] getNonZeroDoubleScores()
public double getNonZeroDoubleScore(int index)
RowgetNonZeroDoubleScore in interface Rowindex - the index-th non-zero cellpublic int getNonZeroIntScore(int index)
RowgetNonZeroIntScore in interface Rowindex - the index-th non-zero cellpublic void setNonZeroDoubleScore(int index,
double score)
public double getDouble(int column)
public Cell getNonZeroCell(int index)
getNonZeroCell in interface Rowindex - the index-th non-zero cellCopyright © 2018 JULIE Lab, Germany. All rights reserved.