Class Array

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

public class Array extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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 double[]
    cloneDouble(float[] vertices)
     
    static float[]
    cloneFloat(double[] vertices)
     
    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(boolean[] input)
     
    static void
    print(byte[] input)
     
    static void
    print(char[] 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 void
    print(long[] input)
     
    static void
    print(String info, boolean[] input)
     
    static void
    print(String info, byte[] input)
     
    static void
    print(String info, char[] input)
     
    static void
    print(String info, double[] input)
     
    static void
    print(String info, float[] input)
     
    static void
    print(String info, int[] input)
     
    static void
    print(String info, long[] input)
     
    static void
    print(String info, Coord3d[] input)
     
    static void
    print(Coord3d[] input)
     
    static void
    print(Coord3d[][] 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[]
     
    static int[]
    sortAscending(Coord3d[] input, Array.Direction direction)
     
    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 int[]
     
    static int[]
    sortDescending(Coord3d[] input, Array.Direction direction)
     
    static double[][]
    toColumnMatrix(double[] input)
     
    static float[][]
    toColumnMatrix(float[] input)
     
    static double[][]
    toColumnMatrixAsDouble(float[] input)
     
    static double[]
    toDouble(float[] input)
     
    static float[]
    toFloat(double[] input)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Array

      public Array()
  • Method Details

    • 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)
    • cloneFloat

      public static float[] cloneFloat(double[] vertices)
    • cloneDouble

      public static double[] cloneDouble(float[] vertices)
    • append

      public static int[] append(int[] input, int value)
    • 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)
    • toDouble

      public static double[] toDouble(float[] input)
    • toFloat

      public static float[] toFloat(double[] input)
    • 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(Date[] input)
    • sortAscending

      public static int[] sortAscending(Date[] input)
    • sortAscending

      public static int[] sortAscending(Coord3d[] input, Array.Direction direction)
    • sortDescending

      public static int[] sortDescending(Coord3d[] input, Array.Direction direction)
    • print

      public static void print(Coord3d[] 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(byte[] input)
    • print

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

      public static void print(long[] input)
    • print

      public static void print(char[] input)
    • print

      public static void print(boolean[] 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(String info, double[] input)
    • print

      public static void print(String info, float[] input)
    • print

      public static void print(String info, boolean[] input)
    • print

      public static void print(String info, int[] input)
    • print

      public static void print(String info, long[] input)
    • print

      public static void print(String info, char[] input)
    • print

      public static void print(String info, byte[] input)
    • print

      public static void print(String info, Coord3d[] input)