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