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