org.jscience.mathematics.algebraic
Interface Vector

All Superinterfaces:
Hypermatrix, Matrix
All Known Implementing Classes:
AbstractBooleanVector, AbstractComplexVector, AbstractDoubleVector, AbstractIntegerVector, AbstractVector, BooleanVector, BraVector, Complex2Vector, Complex3Vector, ComplexSparseVector, ComplexVector, Double2Vector, Double3Vector, DoubleSparseVector, DoubleVector, Integer2Vector, Integer3Vector, IntegerSparseVector, IntegerVector, KetVector, RingVector

public interface Vector
extends Matrix

The Vector superclass provides an abstract encapsulation for vectors. Vectors are basically a matrix with 1 column. Concrete implementations of this class should implement additional interfaces. See subclasses.


Method Summary
 int getDimension()
          Returns the vector's dimension.
 java.lang.Number getElement(int i)
          Returns the element at position i.
 java.lang.Number[] toArray(Vector v)
          Converts a vector to an array.
 
Methods inherited from interface org.jscience.mathematics.algebraic.Matrix
getColumn, getElement, getRow, numColumns, numRows, toArray, transpose
 
Methods inherited from interface org.jscience.mathematics.algebraic.Hypermatrix
getDimensions, getElement, numDimensions, numElements, numElements, toArray, toArray
 

Method Detail

getDimension

int getDimension()
Returns the vector's dimension.

Returns:
DOCUMENT ME!

getElement

java.lang.Number getElement(int i)
                            throws IllegalDimensionException
Returns the element at position i.

Parameters:
i - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
IllegalDimensionException - DOCUMENT ME!

toArray

java.lang.Number[] toArray(Vector v)
Converts a vector to an array.

Parameters:
v - DOCUMENT ME!
Returns:
DOCUMENT ME!