drasys.or.matrix.complex
Class DenseVector

java.lang.Object
  |
  +--drasys.or.matrix.complex.ComplexContainer
        |
        +--drasys.or.matrix.complex.Vect
              |
              +--drasys.or.matrix.complex.ContiguousVector
                    |
                    +--drasys.or.matrix.complex.DenseVector

public class DenseVector
extends ContiguousVector

A dense resizable vector of double values.

References:

Matrix Computations (Johns Hopkins Studies in the Mathematical Sciences)
    Gene H. Golub, Charles F. Van Loan (Contributor) / Paperback / Published 1996
Numerical Recipes in C : The Art of Scientific Computing
    William H. Press, et al / Hardcover / Published 1993
Parallel Algorithms for Matrix Computations
    K.A. Gallivan / Paperback / Published 1990

See Also:
Serialized Form

Fields inherited from class drasys.or.matrix.complex.ComplexContainer
_epsilon, _globalEpsilon
 
Constructor Summary
DenseVector()
          Create an empty dense vector with size zero and capacity 10.
DenseVector(double[] array)
          Create a new dense vector and copy the contents from 'array'.
DenseVector(double[] real, double[] imag)
          Create a new dense vector and copy the contents from 'real' and 'imag'.
DenseVector(int size)
          Create a new dense vector with explicit size.
DenseVector(int size, ComplexI fill)
          Create a new dense vector with explicit size and initialized to 'fill'.
DenseVector(int size, int capacity)
          Create a new dense vector with explicit size and capacity.
DenseVector(VectorI vector)
          Create a new dense vector copying the contents of 'vector'.
 
Methods inherited from class drasys.or.matrix.complex.ContiguousVector
addElement, capacity, elementAt, elementAt, elements, getArray, getBegin, getIncrement, getOffset, getValueArray, isNull, setCapacity, setElementAt, setElements, setSize, size, sizeOfElements, subvector, subvector, sum, sumOfSquaredDifferences, sumOfSquares
 
Methods inherited from class drasys.or.matrix.complex.Vect
equals, equals, setElements, sum, sum, sumOfSquaredDifferences, sumOfSquaredDifferences, sumOfSquares, sumOfSquares, toString
 
Methods inherited from class drasys.or.matrix.complex.ComplexContainer
equals, equals, getEpsilon, getGlobalEpsilon, setEpsilon, setGlobalEpsilon
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DenseVector

public DenseVector()
Create an empty dense vector with size zero and capacity 10.

DenseVector

public DenseVector(int size)
Create a new dense vector with explicit size.

DenseVector

public DenseVector(int size,
                   ComplexI fill)
Create a new dense vector with explicit size and initialized to 'fill'.

DenseVector

public DenseVector(int size,
                   int capacity)
Create a new dense vector with explicit size and capacity.

DenseVector

public DenseVector(double[] array)
Create a new dense vector and copy the contents from 'array'.

DenseVector

public DenseVector(double[] real,
                   double[] imag)
Create a new dense vector and copy the contents from 'real' and 'imag'. Each complex element gets one component from from 'real' and one from 'imag'
EG: complex[0] = (real[0],imag[0])
If either 'real' or 'imag' is null then the associated components will be set to zero.

DenseVector

public DenseVector(VectorI vector)
Create a new dense vector copying the contents of 'vector'. Any null elements in 'vector' will be added with a value of zero.


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