jsci.util
Class VectorToolkit
- java.lang.Object
-
- jsci.util.VectorToolkit
-
public final class VectorToolkit extends java.lang.ObjectThis is a useful collection of vector related methods.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static AbstractComplexVectorrandomComplexVector(int size)Creates a random generated vector.static AbstractDoubleVectorrandomVector(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.
-
-
-
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.
-
-
DMelt 3.0 © DataMelt by jWork.ORG