public interface Row extends Comparable
Interface of row for sparse matrix
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Method and Description |
|---|---|
Cell |
getCell(int column)
If the specified cell does not exist, it returns null.
|
float |
getLoadFactor() |
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 |
getNonZeroNum() |
int |
getRowIndex() |
void |
load(int row,
int num,
byte[] data)
This method will be called when the sparse matrix loads rows from a binary file.
|
void |
setLoadFactor(float factor)
Some implementations of sparse matrix cache rows in memory.
|
compareTovoid load(int row,
int num,
byte[] data)
row - the index of the rownum - the number of non-zero cells in the rowdata - the input data for the rowint getRowIndex()
int getNonZeroNum()
int[] getNonZeroColumns()
int getNonZeroColumn(int index)
index - the index-th non-zero cell in the currrent rowCell getCell(int column)
column - the index of the columnCell getNonZeroCell(int index)
index - the index-th non-zero celldouble getNonZeroDoubleScore(int index)
index - the index-th non-zero cellint getNonZeroIntScore(int index)
index - the index-th non-zero cellvoid setLoadFactor(float factor)
factor - the measure of how this row is frequently usedfloat getLoadFactor()
Copyright © 2018 JULIE Lab, Germany. All rights reserved.