org.jzy3d.maths
Class Array

java.lang.Object
  extended by org.jzy3d.maths.Array

public class Array
extends java.lang.Object


Constructor Summary
Array()
           
 
Method Summary
static int[] append(int[] input, int value)
           
static boolean atLeastOneNonNaN(double[] value)
           
static double[] clone(double[] input)
           
static double[] clone(double[] input, int length)
           
static float[] clone(float[] input)
           
static float[] clone(float[] input, int length)
           
static int[] clone(int[] input)
           
static int[] clone(int[] input, int length)
           
static int countNaNs(double[] value)
           
static double[] filterNaNs(double[] input)
           
static boolean find(double[] values, double value)
           
static boolean find(int[] values, int value)
           
static double[] flatten(double[][] matrix)
           
static double[] flatten(double[][] matrix, boolean ignoreNaN)
           
static float[] flatten(float[][] matrix)
           
static float[] flatten(float[][] matrix, boolean ignoreNaN)
           
static double[] merge(double[] array1, double[] array2)
           
static void print(char[] input)
           
static void print(Coord3d[] input)
           
static void print(double[] input)
           
static void print(double[][] input)
           
static void print(float[] input)
           
static void print(float[][] input)
           
static void print(int[] input)
           
static void print(int[][] input)
           
static int[] sortAscending(java.util.Date[] input)
           
static int[] sortAscending(double[] input)
          Sort input array, and return the final order of initial values.
static int[] sortAscending(float[] input)
          Sort input array, and return the final order of initial values.
static int[] sortAscending(int[] input)
          Sort input array, and return the final order of initial values.
static int[] sortDescending(java.util.Date[] input)
           
static int[] sortDescending(double[] input)
          Sort input array, and return the final order of initial values.
static int[] sortDescending(float[] input)
          Sort input array, and return the final order of initial values.
static int[] sortDescending(int[] input)
          Sort input array, and return the final order of initial values.
static double[][] toColumnMatrix(double[] input)
           
static float[][] toColumnMatrix(float[] input)
           
static double[][] toColumnMatrixAsDouble(float[] input)
           
static double[] vector(double from, double step, int steps)
           
static float[] vector(float from, float step, int steps)
           
static int[] vector(int from, int step, int steps)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Array

public Array()
Method Detail

clone

public static int[] clone(int[] input)

clone

public static float[] clone(float[] input)

clone

public static double[] clone(double[] input)

clone

public static int[] clone(int[] input,
                          int length)

clone

public static float[] clone(float[] input,
                            int length)

clone

public static double[] clone(double[] input,
                             int length)

append

public static int[] append(int[] input,
                           int value)

vector

public static int[] vector(int from,
                           int step,
                           int steps)

vector

public static float[] vector(float from,
                             float step,
                             int steps)

vector

public static double[] vector(double from,
                              double step,
                              int steps)

toColumnMatrix

public static double[][] toColumnMatrix(double[] input)

toColumnMatrix

public static float[][] toColumnMatrix(float[] input)

toColumnMatrixAsDouble

public static double[][] toColumnMatrixAsDouble(float[] input)

find

public static boolean find(double[] values,
                           double value)

find

public static boolean find(int[] values,
                           int value)

merge

public static double[] merge(double[] array1,
                             double[] array2)

flatten

public static double[] flatten(double[][] matrix)

flatten

public static double[] flatten(double[][] matrix,
                               boolean ignoreNaN)

flatten

public static float[] flatten(float[][] matrix)

flatten

public static float[] flatten(float[][] matrix,
                              boolean ignoreNaN)

filterNaNs

public static double[] filterNaNs(double[] input)

countNaNs

public static int countNaNs(double[] value)

atLeastOneNonNaN

public static boolean atLeastOneNonNaN(double[] value)

sortAscending

public static int[] sortAscending(int[] input)
Sort input array, and return the final order of initial values. Note: input array is modified and sorted after call to this method.


sortAscending

public static int[] sortAscending(float[] input)
Sort input array, and return the final order of initial values. Note: input array is modified and sorted after call to this method.


sortDescending

public static int[] sortDescending(int[] input)
Sort input array, and return the final order of initial values. Note: input array is modified and sorted after call to this method.


sortDescending

public static int[] sortDescending(float[] input)
Sort input array, and return the final order of initial values. Note: input array is modified and sorted after call to this method.


sortAscending

public static int[] sortAscending(double[] input)
Sort input array, and return the final order of initial values. Note: input array is modified and sorted after call to this method.


sortDescending

public static int[] sortDescending(double[] input)
Sort input array, and return the final order of initial values. Note: input array is modified and sorted after call to this method.


sortDescending

public static int[] sortDescending(java.util.Date[] input)

sortAscending

public static int[] sortAscending(java.util.Date[] input)

print

public static void print(Coord3d[] input)

print

public static void print(double[] input)

print

public static void print(float[] input)

print

public static void print(int[] input)

print

public static void print(char[] input)

print

public static void print(double[][] input)

print

public static void print(float[][] input)

print

public static void print(int[][] input)