public class Array3DUtil extends java.lang.Object
Constructor and Description |
---|
Array3DUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object[][] |
createArray(DataType dataType,
int len)
Create a new 3D array with specified data type and length
|
static java.lang.Object[][] |
createArray(int dataType,
int len)
Deprecated.
|
static int |
getTotalLength(byte[][][] array)
Return the total number of element of the specified array
|
static int |
getTotalLength(double[][][] array)
Return the total number of element of the specified array
|
static int |
getTotalLength(float[][][] array)
Return the total number of element of the specified array
|
static int |
getTotalLength(int[][][] array)
Return the total number of element of the specified array
|
static int |
getTotalLength(long[][][] array)
Return the total number of element of the specified array
|
static int |
getTotalLength(short[][][] array)
Return the total number of element of the specified array
|
static byte[] |
toByteArray1D(byte[][][] in)
Return the multi dimension 'in' array as a single dimension byte array.
|
static byte[] |
toByteArray1D(byte[][][] in,
byte[] out,
int offset)
Return the 3 dimensions 'in' array as a single dimension array.
|
static double[] |
toDoubleArray1D(double[][][] in)
Return the multi dimension 'in' array as a single dimension double array.
|
static double[] |
toDoubleArray1D(double[][][] in,
double[] out,
int offset)
Return the 3 dimensions 'in' array as a single dimension array.
|
static float[] |
toFloatArray1D(float[][][] in)
Return the multi dimension 'in' array as a single dimension float array.
|
static float[] |
toFloatArray1D(float[][][] in,
float[] out,
int offset)
Return the 3 dimensions 'in' array as a single dimension array.
|
static int[] |
toIntArray1D(int[][][] in)
Return the multi dimension 'in' array as a single dimension int array.
|
static int[] |
toIntArray1D(int[][][] in,
int[] out,
int offset)
Return the 3 dimensions 'in' array as a single dimension array.
|
static long[] |
toLongArray1D(long[][][] in,
long[] out,
int offset)
Return the 3 dimensions 'in' array as a single dimension array.
|
static short[] |
toShortArray1D(short[][][] in)
Return the multi dimension 'in' array as a single dimension short array.
|
static short[] |
toShortArray1D(short[][][] in,
short[] out,
int offset)
Return the 3 dimensions 'in' array as a single dimension array.
|
public Array3DUtil()
public static int getTotalLength(byte[][][] array)
public static int getTotalLength(short[][][] array)
public static int getTotalLength(int[][][] array)
public static int getTotalLength(long[][][] array)
public static int getTotalLength(float[][][] array)
public static int getTotalLength(double[][][] array)
public static java.lang.Object[][] createArray(DataType dataType, int len)
@Deprecated public static java.lang.Object[][] createArray(int dataType, int len)
public static byte[] toByteArray1D(byte[][][] in)
public static short[] toShortArray1D(short[][][] in)
public static int[] toIntArray1D(int[][][] in)
public static float[] toFloatArray1D(float[][][] in)
public static double[] toDoubleArray1D(double[][][] in)
public static byte[] toByteArray1D(byte[][][] in, byte[] out, int offset)
public static short[] toShortArray1D(short[][][] in, short[] out, int offset)
public static int[] toIntArray1D(int[][][] in, int[] out, int offset)
public static long[] toLongArray1D(long[][][] in, long[] out, int offset)
public static float[] toFloatArray1D(float[][][] in, float[] out, int offset)
public static double[] toDoubleArray1D(double[][][] in, double[] out, int offset)