Class StaticDataLoaders

java.lang.Object
net.bmahe.genetics4j.gpu.spec.fitness.cldata.StaticDataLoaders

public class StaticDataLoaders extends Object
  • Constructor Details

    • StaticDataLoaders

      private StaticDataLoaders()
  • Method Details

    • of

      public static StaticDataLoader of(boolean readOnly, int dataType, org.jocl.Pointer dataPtr, int dataLength)
    • of

      public static StaticDataLoader of(int[] data, boolean readOnly)
    • of

      public static StaticDataLoader of(int... data)
    • of

      public static StaticDataLoader of(float[] data, boolean readOnly)
    • of

      public static StaticDataLoader of(float... data)
    • of

      public static StaticDataLoader of(long[] data, boolean readOnly)
    • of

      public static StaticDataLoader of(long... data)
    • of

      public static StaticDataLoader of(double[] data, boolean readOnly)
    • of

      public static StaticDataLoader of(double... data)
    • ofLinearize

      public static StaticDataLoader ofLinearize(double[][] data, boolean readOnly)
      Expect an evenly shaped data
      Parameters:
      data -
      readOnly -
      Returns:
    • ofLinearize

      public static StaticDataLoader ofLinearize(float[][] data, boolean readOnly)
      Expect an evenly shaped data
      Parameters:
      data -
      readOnly -
      Returns:
    • ofLinearize

      public static StaticDataLoader ofLinearize(float[][] data)
      Expect an evenly shaped data
      Parameters:
      data -
      Returns:
    • ofLinearize

      public static StaticDataLoader ofLinearize(int[][] data, boolean readOnly)
      Expect an evenly shaped data
      Parameters:
      data -
      readOnly -
      Returns:
    • ofLinearize

      public static StaticDataLoader ofLinearize(long[][] data, boolean readOnly)
      Expect an evenly shaped data
      Parameters:
      data -
      readOnly -
      Returns:
    • ofImage

      public static StaticDataLoader ofImage(byte[] data, int width, int height, int channelOrder, int channelDataType, boolean readOnly)
    • ofImage

      public static StaticDataLoader ofImage(byte[] data, int width, int height, int channelOrder, int channelDataType)