jsci.util
Class VectorToolkit

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

public final class VectorToolkit
extends 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
equals, 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.



jHepWork 3.1 ©