|
||||||||||
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.GrowableDenseIntArray
Array wrapper for cern.colt.list.IntArrayList
Field Summary |
Fields inherited from class edu.stanford.nlp.linalg.AbstractArray |
ci |
Constructor Summary | |
GrowableDenseIntArray()
|
|
GrowableDenseIntArray(int size)
|
|
GrowableDenseIntArray(int[] array)
|
|
GrowableDenseIntArray(cern.colt.list.IntArrayList array)
|
Method Summary | |
void |
add(int element)
|
Object |
clone()
Returns deep copy of Array |
boolean |
containsKey(int key)
Returns true if the array contains index key |
double |
get(int i)
Gets double value of element at index i |
Iterator |
iterator()
Returns a set view of the Entries contained in this Array. |
Array |
newInstance(int size)
Returns an empty Array of the same dynamic type with given size |
void |
remove(int i)
removes i'th element of array and shifts everything to the left |
void |
set(int i,
double val)
Sets value of element at index i to val |
void |
set(int i,
int val)
|
int |
size()
Returns number of elements in Array |
Methods inherited from class edu.stanford.nlp.linalg.AbstractArray |
add, cardinality, 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 GrowableDenseIntArray()
public GrowableDenseIntArray(int[] array)
public GrowableDenseIntArray(cern.colt.list.IntArrayList array)
public GrowableDenseIntArray(int size)
Method Detail |
public Array newInstance(int size)
Array
public double get(int i)
Array
public void set(int i, double val)
Array
public void set(int i, int val)
public void add(int element)
public int size()
Array
public boolean containsKey(int key)
Array
key
public Object clone()
Array
clone
in interface Array
clone
in class AbstractArray
public void remove(int i)
public Iterator iterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |