JSci.util
Class VectorToolkit

java.lang.Object
  extended by JSci.util.VectorToolkit

public final class VectorToolkit
extends java.lang.Object

This is a useful collection of vector related methods.


Method Summary
static AbstractComplexVector randomComplexVector(int size)
          Creates a random generated vector.
static AbstractDoubleVector randomVector(int size)
          Creates a random generated vector.
static Complex[] toArray(AbstractComplexVector v)
          Converts a vector to an array.
static double[] toArray(AbstractDoubleVector v)
          Converts a vector to an array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

randomVector

public static AbstractDoubleVector randomVector(int size)
Creates a random generated vector.


randomComplexVector

public static AbstractComplexVector randomComplexVector(int size)
Creates a random generated vector.


toArray

public static double[] toArray(AbstractDoubleVector v)
Converts a vector to an array.


toArray

public static Complex[] toArray(AbstractComplexVector v)
Converts a vector to an array.