|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--edu.stanford.nlp.linalg.AbstractArray
|
+--edu.stanford.nlp.linalg.ColtSparseDoubleArray
An Array Wrapper for cern.colt.matrix.SparseDoubleMatrix1D
| Field Summary |
| Fields inherited from class edu.stanford.nlp.linalg.AbstractArray |
ci |
| Constructor Summary | |
ColtSparseDoubleArray(double[] elements)
|
|
ColtSparseDoubleArray(cern.colt.matrix.DoubleMatrix1D array)
|
|
ColtSparseDoubleArray(int num_elements)
|
|
| Method Summary | |
int |
cardinality()
overrides AbstractMatrix.cardinality() |
Object |
clone()
Returns deep copy of Array |
boolean |
containsKey(int key)
Returns true if the array contains index key |
double |
get(int index)
Gets double value of element at index i |
Iterator |
iterator()
Returns an iterator over the entries in the matrix |
Array |
newInstance(int size)
Returns an empty Array of the same dynamic type with given size |
void |
set(int i,
double val)
Sets value of element at index i to val |
int |
size()
size() returns number of elements in Array |
cern.colt.matrix.DoubleMatrix1D |
toDoubleMatrix1D()
|
| Methods inherited from class edu.stanford.nlp.linalg.AbstractArray |
add, columnIndex, distance, divide, divide, dot, entrySet, multiply, multiply, norm, normalize, scale, setAll, setColumnIndex, toLogSpace, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.stanford.nlp.linalg.Array |
equals |
| Constructor Detail |
public ColtSparseDoubleArray(int num_elements)
public ColtSparseDoubleArray(double[] elements)
public ColtSparseDoubleArray(cern.colt.matrix.DoubleMatrix1D array)
| Method Detail |
public Array newInstance(int size)
Array
public double get(int index)
Array
public void set(int i,
double val)
Array
public int size()
public cern.colt.matrix.DoubleMatrix1D toDoubleMatrix1D()
public Object clone()
Array
clone in interface Arrayclone in class AbstractArraypublic boolean containsKey(int key)
Arraykey
public int cardinality()
cardinality in interface Arraycardinality in class AbstractArraypublic Iterator iterator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||