edu.stanford.nlp.linalg
Class DenseSNDArray
java.lang.Object
|
+--edu.stanford.nlp.linalg.AbstractArray
|
+--edu.stanford.nlp.linalg.DenseNumberArray
|
+--edu.stanford.nlp.linalg.DenseSNDArray
- All Implemented Interfaces:
- Array, Cloneable
- public class DenseSNDArray
- extends DenseNumberArray
An Array wrapper for an array of ScientificNotationDoubles
Method Summary |
Object |
clone()
Returns deep copy of Array |
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 |
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 interface edu.stanford.nlp.linalg.Array |
equals |
DenseSNDArray
public DenseSNDArray(int num_elements)
DenseSNDArray
public DenseSNDArray(Number[] array)
newInstance
public Array newInstance(int size)
- Description copied from interface:
Array
- Returns an empty Array of the same dynamic type with given size
set
public void set(int i,
double val)
- Description copied from interface:
Array
- Sets value of element at index i to val
clone
public Object clone()
- Description copied from interface:
Array
- Returns deep copy of Array
- Specified by:
clone
in interface Array
- Specified by:
clone
in class AbstractArray
Stanford NLP Group