drasys.or.matrix.complex
Interface SizableVectorI
- All Known Implementing Classes:
- ContiguousVector
- public interface SizableVectorI
- extends VectorI
Complex vectors that can be resized.
Method Summary |
void |
addElement(ComplexI 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.complex.VectorI |
elementAt,
elementAt,
elements,
equals,
getArray,
isNull,
setElementAt,
setElements,
setElements,
size,
sizeOfElements,
sum,
sum,
sum,
sumOfSquaredDifferences,
sumOfSquaredDifferences,
sumOfSquaredDifferences,
sumOfSquares,
sumOfSquares,
sumOfSquares |
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(ComplexI value)
- Adds a new element to the end of the vector.
Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com