StdArrays

public final class StdArrays

Utility class for working with NdArray instances mixed with standard Java arrays.

Public Constructors

Public Methods

static long[]
array1dCopyOf ( LongNdArray ndArray)
Copy a LongNdArray in a new 1-dimension standard array of longs
static <T> T[]
array1dCopyOf ( NdArray <T> ndArray, Class<T> objectType)
Copy a NdArray&lt;T&gt; in a new 1-dimension standard array of objects
static byte[]
array1dCopyOf ( ByteNdArray ndArray)
Copy a ByteNdArray in a new 1-dimension standard array of bytes
static float[]
array1dCopyOf ( FloatNdArray ndArray)
Copy a FloatNdArray in a new 1-dimension standard array of floats
static boolean[]
array1dCopyOf ( BooleanNdArray ndArray)
Copy a BooleanNdArray in a new 1-dimension standard array of booleans
static double[]
array1dCopyOf ( DoubleNdArray ndArray)
Copy a DoubleNdArray in a new 1-dimension standard array of doubles
static short[]
array1dCopyOf ( ShortNdArray ndArray)
Copy a ShortNdArray in a new 1-dimension standard array of shorts
static int[]
array1dCopyOf ( IntNdArray ndArray)
Copy a IntNdArray in a new 1-dimension standard array of ints
static byte[][]
array2dCopyOf ( ByteNdArray ndArray)
Copy a ByteNdArray in a new 2-dimension standard array of bytes
static <T> T[][]
array2dCopyOf ( NdArray <T> ndArray, Class<T> objectType)
Copy a NdArray&lt;T&gt; in a new 2-dimension standard array of objects
static short[][]
array2dCopyOf ( ShortNdArray ndArray)
Copy a ShortNdArray in a new 2-dimension standard array of shorts
static float[][]
array2dCopyOf ( FloatNdArray ndArray)
Copy a FloatNdArray in a new 2-dimension standard array of floats
static long[][]
array2dCopyOf ( LongNdArray ndArray)
Copy a LongNdArray in a new 2-dimension standard array of longs
static double[][]
array2dCopyOf ( DoubleNdArray ndArray)
Copy a DoubleNdArray in a new 2-dimension standard array of doubles
static boolean[][]
array2dCopyOf ( BooleanNdArray ndArray)
Copy a BooleanNdArray in a new 2-dimension standard array of booleans
static int[][]
array2dCopyOf ( IntNdArray ndArray)
Copy a IntNdArray in a new 2-dimension standard array of ints
static float[][][]
array3dCopyOf ( FloatNdArray ndArray)
Copy a FloatNdArray in a new 3-dimension standard array of floats
static double[][][]
array3dCopyOf ( DoubleNdArray ndArray)
Copy a DoubleNdArray in a new 3-dimension standard array of doubles
static <T> T[][][]
array3dCopyOf ( NdArray <T> ndArray, Class<T> objectType)
Copy a NdArray&lt;T&gt; in a new 3-dimension standard array of objects
static long[][][]
array3dCopyOf ( LongNdArray ndArray)
Copy a LongNdArray in a new 3-dimension standard array of longs
static byte[][][]
array3dCopyOf ( ByteNdArray ndArray)
Copy a ByteNdArray in a new 3-dimension standard array of bytes
static int[][][]
array3dCopyOf ( IntNdArray ndArray)
Copy a IntNdArray in a new 3-dimension standard array of ints
static short[][][]
array3dCopyOf ( ShortNdArray ndArray)
Copy a ShortNdArray in a new 3-dimension standard array of shorts
static boolean[][][]
array3dCopyOf ( BooleanNdArray ndArray)
Copy a BooleanNdArray in a new 3-dimension standard array of booleans
static <T> T[][][][]
array4dCopyOf ( NdArray <T> ndArray, Class<T> objectType)
Copy a NdArray&lt;T&gt; in a new 4-dimension standard array of objects
static short[][][][]
array4dCopyOf ( ShortNdArray ndArray)
Copy a ShortNdArray in a new 4-dimension standard array of shorts
static double[][][][]
array4dCopyOf ( DoubleNdArray ndArray)
Copy a DoubleNdArray in a new 4-dimension standard array of doubles
static boolean[][][][]
array4dCopyOf ( BooleanNdArray ndArray)
Copy a BooleanNdArray in a new 4-dimension standard array of booleans
static byte[][][][]
array4dCopyOf ( ByteNdArray ndArray)
Copy a ByteNdArray in a new 4-dimension standard array of bytes
static int[][][][]
array4dCopyOf ( IntNdArray ndArray)
Copy a IntNdArray in a new 4-dimension standard array of ints
static float[][][][]
array4dCopyOf ( FloatNdArray ndArray)
Copy a FloatNdArray in a new 4-dimension standard array of floats
static long[][][][]
array4dCopyOf ( LongNdArray ndArray)
Copy a LongNdArray in a new 4-dimension standard array of longs
static short[][][][][]
array5dCopyOf ( ShortNdArray ndArray)
Copy a ShortNdArray in a new 5-dimension standard array of shorts
static long[][][][][]
array5dCopyOf ( LongNdArray ndArray)
Copy a LongNdArray in a new 5-dimension standard array of longs
static boolean[][][][][]
array5dCopyOf ( BooleanNdArray ndArray)
Copy a BooleanNdArray in a new 5-dimension standard array of booleans
static float[][][][][]
array5dCopyOf ( FloatNdArray ndArray)
Copy a FloatNdArray in a new 5-dimension standard array of floats
static int[][][][][]
array5dCopyOf ( IntNdArray ndArray)
Copy a IntNdArray in a new 5-dimension standard array of ints
static byte[][][][][]
array5dCopyOf ( ByteNdArray ndArray)
Copy a ByteNdArray in a new 5-dimension standard array of bytes
static <T> T[][][][][]
array5dCopyOf ( NdArray <T> ndArray, Class<T> objectType)
Copy a NdArray&lt;T&gt; in a new 5-dimension standard array of objects
static double[][][][][]
array5dCopyOf ( DoubleNdArray ndArray)
Copy a DoubleNdArray in a new 5-dimension standard array of doubles
static byte[][][][][][]
array6dCopyOf ( ByteNdArray ndArray)
Copy a ByteNdArray in a new 6-dimension standard array of bytes
static short[][][][][][]
array6dCopyOf ( ShortNdArray ndArray)
Copy a ShortNdArray in a new 6-dimension standard array of shorts
static long[][][][][][]
array6dCopyOf ( LongNdArray ndArray)
Copy a LongNdArray in a new 6-dimension standard array of longs
static boolean[][][][][][]
array6dCopyOf ( BooleanNdArray ndArray)
Copy a BooleanNdArray in a new 6-dimension standard array of booleans
static double[][][][][][]
array6dCopyOf ( DoubleNdArray ndArray)
Copy a DoubleNdArray in a new 6-dimension standard array of doubles
static float[][][][][][]
array6dCopyOf ( FloatNdArray ndArray)
Copy a FloatNdArray in a new 6-dimension standard array of floats
static int[][][][][][]
array6dCopyOf ( IntNdArray ndArray)
Copy a IntNdArray in a new 6-dimension standard array of ints
static <T> T[][][][][][]
array6dCopyOf ( NdArray <T> ndArray, Class<T> objectType)
Copy a NdArray&lt;T&gt; in a new 6-dimension standard array of objects
static void
copyFrom ( LongNdArray src, long[][][][] dst)
Copy a NdArray to a 4-dimensional array of longs
static void
copyFrom ( ShortNdArray src, short[][][][][][] dst)
Copy a NdArray to a 6-dimensional array of shorts
static void
copyFrom ( LongNdArray src, long[][][][][][] dst)
Copy a NdArray to a 6-dimensional array of longs
static void
copyFrom ( BooleanNdArray src, boolean[][][][][] dst)
Copy a NdArray to a 5-dimensional array of booleans
static void
copyFrom ( IntNdArray src, int[][][][] dst)
Copy a NdArray to a 4-dimensional array of ints
static void
copyFrom ( IntNdArray src, int[][] dst)
Copy a NdArray to a 2-dimensional array of ints
static <T> void
copyFrom ( NdArray <T> src, T[][][] dst)
Copy a NdArray to a 3-dimensional array of objects
static void
copyFrom ( ByteNdArray src, byte[][] dst)
Copy a NdArray to a 2-dimensional array of bytes
static <T> void
copyFrom ( NdArray <T> src, T[][][][][][] dst)
Copy a NdArray to a 6-dimensional array of objects
static void
copyFrom ( DoubleNdArray src, double[][] dst)
Copy a NdArray to a 2-dimensional array of doubles
static void
copyFrom ( DoubleNdArray src, double[][][] dst)
Copy a NdArray to a 3-dimensional array of doubles
static void
copyFrom ( FloatNdArray src, float[][][][][] dst)
Copy a NdArray to a 5-dimensional array of floats
static void
copyFrom ( LongNdArray src, long[][] dst)
Copy a NdArray to a 2-dimensional array of longs
static void
copyFrom ( FloatNdArray src, float[][] dst)
Copy a NdArray to a 2-dimensional array of floats
static void
copyFrom ( FloatNdArray src, float[][][][][][] dst)
Copy a NdArray to a 6-dimensional array of floats
static void
copyFrom ( IntNdArray src, int[][][][][] dst)
Copy a NdArray to a 5-dimensional array of ints
static <T> void
copyFrom ( NdArray <T> src, T[][][][][] dst)
Copy a NdArray to a 5-dimensional array of objects
static void
copyFrom ( ByteNdArray src, byte[] dst)
Copy a NdArray to an array of bytes
static <T> void
copyFrom ( NdArray <T> src, T[][] dst)
Copy a NdArray