drasys.or.matrix
Class DenseVector

java.lang.Object
  |
  +--drasys.or.matrix.RealContainer
        |
        +--drasys.or.matrix.Vect
              |
              +--drasys.or.matrix.ContiguousVector
                    |
                    +--drasys.or.matrix.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.RealContainer
_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[] array, double epsilon)
          Create a new dense vector and copy the contents from 'array'.
DenseVector(int size)
          Create a new dense vector with explicit size.
DenseVector(int size, double 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.ContiguousVector
addElement, capacity, 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.Vect
equals, equals, setElements, sum, sum, sumOfSquaredDifferences, sumOfSquaredDifferences, sumOfSquares, sumOfSquares, toString
 
Methods inherited from class drasys.or.matrix.RealContainer
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,
                   double 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[] array,
                   double epsilon)
Create a new dense vector and copy the contents from 'array'.

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