|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.stanford.nlp.linalg.Entry
Stores and allows access to single entry in a vector or matrix. Note: this is not to be confused with inner class java.util.Map.Entry which stores an (Object)key-(Object)value pair. This stores a (int i, int j, Number val) triplet.
| Constructor Summary | |
Entry(int i,
double val)
constructor for a column vector entry A(i). |
|
Entry(int i,
int val)
constructor for a column vector entry A(i). |
|
Entry(int row,
int column,
double val)
constructor for a Matrix entry M(i,j) |
|
Entry(int row,
int column,
int val)
constructor for a Matrix entry M(i,j) |
|
Entry(int row,
int column,
Number val)
constructor for a Matrix entry M(i,j) |
|
Entry(int i,
Number val)
constructor for a column vector entry A(i). |
|
| Method Summary | |
int |
columnIndex()
returns column index of Entry |
int |
compareTo(Object o)
Compares entries first by value, then by row index, then by column index. |
boolean |
equals(Object o)
|
int |
index()
returns row index of Entry. |
int |
rowIndex()
returns row index of Entry |
int |
setColumnIndex(int i)
If the entry is a column vector entry, sets the Column index to i. |
String |
toString()
|
double |
value()
returns M(i,j) |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Entry(int row,
int column,
Number val)
public Entry(int row,
int column,
double val)
public Entry(int row,
int column,
int val)
public Entry(int i,
Number val)
public Entry(int i,
double val)
public Entry(int i,
int val)
| Method Detail |
public int rowIndex()
public int columnIndex()
public int index()
public int setColumnIndex(int i)
public double value()
public int compareTo(Object o)
compareTo in interface Comparablepublic boolean equals(Object o)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||