drasys.or.matrix
Interface SizableVectorI

All Known Implementing Classes:
ContiguousVector, SparseVector

public interface SizableVectorI
extends VectorI

Vectors that can be resized.


Method Summary
 void addElement(double value)
          Adds a new element to the end of the vector.
 int capacity()
          Returns the number of elements the vector can hold without reallocating memory.
 void setCapacity(int capacity)
          Allocates memory so the vector can hold this many elements without reallocating memory.
 void setSize(int size)
          Sets the number of elements in the vector.
 
Methods inherited from interface drasys.or.matrix.VectorI
elementAt, elements, equals, getArray, isNull, setElementAt, setElements, setElements, size, sizeOfElements, sum, sum, sum, sumOfSquaredDifferences, sumOfSquaredDifferences, sumOfSquaredDifferences, sumOfSquares, sumOfSquares, sumOfSquares
 
Methods inherited from interface drasys.or.matrix.RealContainerI
equals, getEpsilon, setEpsilon
 

Method Detail

setSize

public void setSize(int size)
Sets the number of elements in the vector.

capacity

public int capacity()
Returns the number of elements the vector can hold without reallocating memory.

setCapacity

public void setCapacity(int capacity)
Allocates memory so the vector can hold this many elements without reallocating memory.

addElement

public void addElement(double value)
Adds a new element to the end of the vector.


Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com