Class StaticDataLoaders
java.lang.Object
net.bmahe.genetics4j.gpu.spec.fitness.cldata.StaticDataLoaders
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StaticDataLoaderof(boolean readOnly, int dataType, org.jocl.Pointer dataPtr, int dataLength) static StaticDataLoaderof(double... data) static StaticDataLoaderof(double[] data, boolean readOnly) static StaticDataLoaderof(float... data) static StaticDataLoaderof(float[] data, boolean readOnly) static StaticDataLoaderof(int... data) static StaticDataLoaderof(int[] data, boolean readOnly) static StaticDataLoaderof(long... data) static StaticDataLoaderof(long[] data, boolean readOnly) static StaticDataLoaderofImage(byte[] data, int width, int height, int channelOrder, int channelDataType) static StaticDataLoaderofImage(byte[] data, int width, int height, int channelOrder, int channelDataType, boolean readOnly) static StaticDataLoaderofLinearize(double[][] data, boolean readOnly) Expect an evenly shaped datastatic StaticDataLoaderofLinearize(float[][] data) Expect an evenly shaped datastatic StaticDataLoaderofLinearize(float[][] data, boolean readOnly) Expect an evenly shaped datastatic StaticDataLoaderofLinearize(int[][] data, boolean readOnly) Expect an evenly shaped datastatic StaticDataLoaderofLinearize(long[][] data, boolean readOnly) Expect an evenly shaped data
-
Constructor Details
-
StaticDataLoaders
private StaticDataLoaders()
-
-
Method Details
-
of
public static StaticDataLoader of(boolean readOnly, int dataType, org.jocl.Pointer dataPtr, int dataLength) -
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
ofLinearize
Expect an evenly shaped data- Parameters:
data-readOnly-- Returns:
-
ofLinearize
Expect an evenly shaped data- Parameters:
data-readOnly-- Returns:
-
ofLinearize
Expect an evenly shaped data- Parameters:
data-- Returns:
-
ofLinearize
Expect an evenly shaped data- Parameters:
data-readOnly-- Returns:
-
ofLinearize
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)
-