Class ResultExtractor

java.lang.Object
net.bmahe.genetics4j.gpu.spec.fitness.ResultExtractor

public class ResultExtractor extends Object
  • Field Details

    • logger

      public static final org.apache.logging.log4j.Logger logger
    • resultData

      private final Map<Device,Map<Integer,CLData>> resultData
  • Constructor Details

  • Method Details

    • extractClData

      protected CLData extractClData(Device device, int argumentIndex)
    • extractImageAsByteArray

      public byte[] extractImageAsByteArray(OpenCLExecutionContext openCLExecutionContext, int argumentIndex, int width, int height, int numChannels, int channelSize)
    • extractFloatArray

      public float[] extractFloatArray(OpenCLExecutionContext openCLExecutionContext, int argumentIndex)
    • extractIntArray

      public int[] extractIntArray(OpenCLExecutionContext openCLExecutionContext, int argumentIndex)
    • extractLongArray

      public long[] extractLongArray(OpenCLExecutionContext openCLExecutionContext, int argumentIndex)