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


Field Summary
 
Fields inherited from class edu.stanford.nlp.linalg.DenseNumberArray
array
 
Fields inherited from class edu.stanford.nlp.linalg.AbstractArray
ci
 
Constructor Summary
DenseSNDArray(int num_elements)
           
DenseSNDArray(Number[] array)
           
 
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.DenseNumberArray
containsKey, get, getNumber, iterator, set, size
 
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

DenseSNDArray

public DenseSNDArray(int num_elements)

DenseSNDArray

public DenseSNDArray(Number[] array)
Method Detail

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