- java.lang.Object
-
- org.tensorflow.ndarray.StdArrays
-
-
Constructor Summary
Constructors Constructor Description StdArrays()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean[]array1dCopyOf(BooleanNdArray ndArray)Copy aBooleanNdArrayin a new 1-dimension standard array of booleansstatic byte[]array1dCopyOf(ByteNdArray ndArray)Copy aByteNdArrayin a new 1-dimension standard array of bytesstatic double[]array1dCopyOf(DoubleNdArray ndArray)Copy aDoubleNdArrayin a new 1-dimension standard array of doublesstatic float[]array1dCopyOf(FloatNdArray ndArray)Copy aFloatNdArrayin a new 1-dimension standard array of floatsstatic int[]array1dCopyOf(IntNdArray ndArray)Copy aIntNdArrayin a new 1-dimension standard array of intsstatic long[]array1dCopyOf(LongNdArray ndArray)Copy aLongNdArrayin a new 1-dimension standard array of longsstatic <T> T[]array1dCopyOf(NdArray<T> ndArray, Class<T> objectType)Copy aNdArray<T>in a new 1-dimension standard array of objectsstatic short[]array1dCopyOf(ShortNdArray ndArray)Copy aShortNdArrayin a new 1-dimension standard array of shortsstatic boolean[][]array2dCopyOf(BooleanNdArray ndArray)Copy aBooleanNdArrayin a new 2-dimension standard array of booleansstatic byte[][]array2dCopyOf(ByteNdArray ndArray)Copy aByteNdArrayin a new 2-dimension standard array of bytesstatic double[][]array2dCopyOf(DoubleNdArray ndArray)Copy aDoubleNdArrayin a new 2-dimension standard array of doublesstatic float[][]array2dCopyOf(FloatNdArray ndArray)Copy aFloatNdArrayin a new 2-dimension standard array of floatsstatic int[][]array2dCopyOf(IntNdArray ndArray)Copy aIntNdArrayin a new 2-dimension standard array of intsstatic long[][]array2dCopyOf(LongNdArray ndArray)Copy aLongNdArrayin a new 2-dimension standard array of longsstatic <T> T[][]array2dCopyOf(NdArray<T> ndArray, Class<T> objectType)Copy aNdArray<T>in a new 2-dimension standard array of objectsstatic short[][]array2dCopyOf(ShortNdArray ndArray)Copy aShortNdArrayin a new 2-dimension standard array of shortsstatic boolean[][][]array3dCopyOf(BooleanNdArray ndArray)Copy aBooleanNdArrayin a new 3-dimension standard array of booleansstatic byte[][][]array3dCopyOf(ByteNdArray ndArray)Copy aByteNdArrayin a new 3-dimension standard array of bytesstatic double[][][]array3dCopyOf(DoubleNdArray ndArray)Copy aDoubleNdArrayin a new 3-dimension standard array of doublesstatic float[][][]array3dCopyOf(FloatNdArray ndArray)Copy aFloatNdArrayin a new 3-dimension standard array of floatsstatic int[][][]array3dCopyOf(IntNdArray ndArray)Copy aIntNdArrayin a new 3-dimension standard array of intsstatic long[][][]array3dCopyOf(LongNdArray ndArray)Copy aLongNdArrayin a new 3-dimension standard array of longsstatic <T> T[][][]array3dCopyOf(NdArray<T> ndArray, Class<T> objectType)Copy aNdArray<T>in a new 3-dimension standard array of objectsstatic short[][][]array3dCopyOf(ShortNdArray ndArray)Copy aShortNdArrayin a new 3-dimension standard array of shortsstatic boolean[][][][]array4dCopyOf(BooleanNdArray ndArray)Copy aBooleanNdArrayin a new 4-dimension standard array of booleansstatic byte[][][][]array4dCopyOf(ByteNdArray ndArray)Copy aByteNdArrayin a new 4-dimension standard array of bytesstatic double[][][][]array4dCopyOf(DoubleNdArray ndArray)Copy aDoubleNdArrayin a new 4-dimension standard array of doublesstatic float[][][][]array4dCopyOf(FloatNdArray ndArray)Copy aFloatNdArrayin a new 4-dimension standard array of floatsstatic int[][][][]array4dCopyOf(IntNdArray ndArray)Copy aIntNdArrayin a new 4-dimension standard array of intsstatic long[][][][]array4dCopyOf(LongNdArray ndArray)Copy aLongNdArrayin a new 4-dimension standard array of longsstatic <T> T[][][][]array4dCopyOf(NdArray<T> ndArray, Class<T> objectType)Copy aNdArray<T>in a new 4-dimension standard array of objectsstatic short[][][][]array4dCopyOf(ShortNdArray ndArray)Copy aShortNdArrayin a new 4-dimension standard array of shortsstatic boolean[][][][][]array5dCopyOf(BooleanNdArray ndArray)Copy aBooleanNdArrayin a new 5-dimension standard array of booleansstatic byte[][][][][]array5dCopyOf(ByteNdArray ndArray)Copy aByteNdArrayin a new 5-dimension standard array of bytesstatic double[][][][][]array5dCopyOf(DoubleNdArray ndArray)Copy aDoubleNdArrayin a new 5-dimension standard array of doublesstatic float[][][][][]array5dCopyOf(FloatNdArray ndArray)Copy aFloatNdArrayin a new 5-dimension standard array of floatsstatic int[][][][][]array5dCopyOf(IntNdArray ndArray)Copy aIntNdArrayin a new 5-dimension standard array of intsstatic long[][][][][]array5dCopyOf(LongNdArray ndArray)Copy aLongNdArrayin a new 5-dimension standard array of longsstatic <T> T[][][][][]array5dCopyOf(NdArray<T> ndArray, Class<T> objectType)Copy aNdArray<T>in a new 5-dimension standard array of objectsstatic short[][][][][]array5dCopyOf(ShortNdArray ndArray)Copy aShortNdArrayin a new 5-dimension standard array of shortsstatic boolean[][][][][][]array6dCopyOf(BooleanNdArray ndArray)Copy aBooleanNdArrayin a new 6-dimension standard array of booleansstatic byte[][][][][][]array6dCopyOf(ByteNdArray ndArray)Copy aByteNdArrayin a new 6-dimension standard array of bytesstatic double[][][][][][]array6dCopyOf(DoubleNdArray ndArray)Copy aDoubleNdArrayin a new 6-dimension standard array of doublesstatic float[][][][][][]array6dCopyOf(FloatNdArray ndArray)Copy aFloatNdArrayin a new 6-dimension standard array of floatsstatic int[][][][][][]array6dCopyOf(IntNdArray ndArray)Copy aIntNdArrayin a new 6-dimension standard array of intsstatic long[][][][][][]array6dCopyOf(LongNdArray ndArray)Copy aLongNdArrayin a new 6-dimension standard array of longsstatic <T> T[][][][][][]array6dCopyOf(NdArray<T> ndArray, Class<T> objectType)Copy aNdArray<T>in a new 6-dimension standard array of objectsstatic short[][][][][][]array6dCopyOf(ShortNdArray ndArray)Copy aShortNdArrayin a new 6-dimension standard array of shortsstatic voidcopyFrom(BooleanNdArray src, boolean[] dst)Copy aNdArrayto an array of booleans.static voidcopyFrom(BooleanNdArray src, boolean[][] dst)Copy aNdArrayto a 2-dimensional array of booleansstatic voidcopyFrom(BooleanNdArray src, boolean[][][] dst)Copy aNdArrayto a 3-dimensional array of booleansstatic voidcopyFrom(BooleanNdArray src, boolean[][][][] dst)Copy aNdArrayto a 4-dimensional array of booleansstatic voidcopyFrom(BooleanNdArray src, boolean[][][][][] dst)Copy aNdArrayto a 5-dimensional array of booleansstatic voidcopyFrom(BooleanNdArray src, boolean[][][][][][] dst)Copy aNdArrayto a 6-dimensional array of booleansstatic voidcopyFrom(ByteNdArray src, byte[] dst)Copy aNdArrayto an array of bytesstatic voidcopyFrom(ByteNdArray src, byte[][] dst)Copy aNdArrayto a 2-dimensional array of bytesstatic voidcopyFrom(ByteNdArray src, byte[][][] dst)Copy aNdArrayto a 3-dimensional array of bytesstatic voidcopyFrom(ByteNdArray src, byte[][][][] dst)Copy aNdArrayto a 4-dimensional array of bytesstatic voidcopyFrom(ByteNdArray src, byte[][][][][] dst)Copy aNdArrayto a 5-dimensional array of bytesstatic voidcopyFrom(ByteNdArray src, byte[][][][][][] dst)Copy aNdArrayto a 6-dimensional array of bytesstatic voidcopyFrom(DoubleNdArray src, double[] dst)Copy aNdArrayto an array of doublesstatic voidcopyFrom(DoubleNdArray src, double[][] dst)Copy aNdArrayto a 2-dimensional array of doublesstatic voidcopyFrom(DoubleNdArray src, double[][][] dst)Copy aNdArrayto a 3-dimensional array of doublesstatic voidcopyFrom(DoubleNdArray src, double[][][][] dst)Copy aNdArrayto a 4-dimensional array of doublesstatic voidcopyFrom(DoubleNdArray src, double[][][][][] dst)Copy aNdArrayto a 5-dimensional array of doublesstatic voidcopyFrom(DoubleNdArray src, double[][][][][][] dst)Copy aNdArrayto a 6-dimensional array of doublesstatic voidcopyFrom(FloatNdArray src, float[] dst)Copy aNdArrayto an array of floatsstatic voidcopyFrom(FloatNdArray src, float[][] dst)Copy aNdArrayto a 2-dimensional array of floatsstatic voidcopyFrom(FloatNdArray src, float[][][] dst)Copy aNdArrayto a 3-dimensional array of floatsstatic voidcopyFrom(FloatNdArray src, float[][][][] dst)Copy aNdArrayto a 4-dimensional array of floatsstatic voidcopyFrom(FloatNdArray src, float[][][][][] dst)Copy aNdArrayto a 5-dimensional array of floatsstatic voidcopyFrom(FloatNdArray src, float[][][][][][] dst)Copy aNdArrayto a 6-dimensional array of floatsstatic voidcopyFrom(IntNdArray src, int[] dst)Copy aNdArrayto an array of intsstatic voidcopyFrom(IntNdArray src, int[][] dst)Copy aNdArrayto a 2-dimensional array of intsstatic voidcopyFrom(IntNdArray src, int[][][] dst)Copy aNdArrayto a 3-dimensional array of intsstatic voidcopyFrom(IntNdArray src, int[][][][] dst)Copy aNdArrayto a 4-dimensional array of intsstatic voidcopyFrom(IntNdArray src, int[][][][][] dst)Copy aNdArrayto a 5-dimensional array of intsstatic voidcopyFrom(IntNdArray src, int[][][][][][] dst)Copy aNdArrayto a 6-dimensional array of intsstatic voidcopyFrom(LongNdArray src, long[] dst)Copy aNdArrayto an array of longsstatic voidcopyFrom(LongNdArray src, long[][] dst)Copy aNdArrayto a 2-dimensional array of longsstatic voidcopyFrom(LongNdArray src, long[][][] dst)Copy aNdArrayto a 3-dimensional array of longsstatic voidcopyFrom(LongNdArray src, long[][][][] dst)Copy aNdArrayto a 4-dimensional array of longsstatic voidcopyFrom(LongNdArray src, long[][][][][] dst)Copy aNdArrayto a 5-dimensional array of longsstatic voidcopyFrom(LongNdArray src, long[][][][][][] dst)Copy aNdArrayto a 6-dimensional array of longsstatic <T> voidcopyFrom(NdArray<T> src, T[] dst)Copy aNdArrayto an array of objectsstatic <T> voidcopyFrom(NdArray<T> src, T[][] dst)Copy aNdArrayto a 2-dimensional array of objectsstatic <T> voidcopyFrom(NdArray<T> src, T[][][] dst)Copy aNdArrayto a 3-dimensional array of objectsstatic <T> voidcopyFrom(NdArray<T> src, T[][][][] dst)Copy aNdArrayto a 4-dimensional array of objectsstatic <T> voidcopyFrom(NdArray<T> src, T[][][][][] dst)Copy aNdArrayto a 5-dimensional array of objectsstatic <T> voidcopyFrom(NdArray<T> src, T[][][][][][] dst)Copy aNdArrayto a 6-dimensional array of objectsstatic voidcopyFrom(ShortNdArray src, short[] dst)Copy aNdArrayto an array of shortsstatic voidcopyFrom(ShortNdArray src, short[][] dst)Copy aNdArrayto a 2-dimensional array of shortsstatic voidcopyFrom(ShortNdArray src, short[][][] dst)Copy aNdArrayto a 3-dimensional array of shortsstatic voidcopyFrom(ShortNdArray src, short[][][][] dst)Copy aNdArrayto a 4-dimensional array of shortsstatic voidcopyFrom(ShortNdArray src, short[][][][][] dst)Copy aNdArrayto a 5-dimensional array of shortsstatic voidcopyFrom(ShortNdArray src, short[][][][][][] dst)Copy aNdArrayto a 6-dimensional array of shortsstatic voidcopyTo(boolean[][][][][][] src, BooleanNdArray dst)Copy a 6-dimensional array of booleans into thedstNdArraystatic voidcopyTo(boolean[][][][][] src, BooleanNdArray dst)Copy a 5-dimensional array of booleans into thedstNdArraystatic voidcopyTo(boolean[][][][] src, BooleanNdArray dst)Copy a 4-dimensional array of booleans into thedstNdArraystatic voidcopyTo(boolean[][][] src, BooleanNdArray dst)Copy a 3-dimensional array of booleans into thedstNdArraystatic voidcopyTo(boolean[][] src, BooleanNdArray dst)Copy a 2-dimensional array of booleans into thedstNdArraystatic voidcopyTo(boolean[] src, BooleanNdArray dst)Copy an array of booleans into thedstNdArraystatic voidcopyTo(byte[][][][][][] src, ByteNdArray dst)Copy a 6-dimensional array of bytes into thedstNdArraystatic voidcopyTo(byte[][][][][] src, ByteNdArray dst)Copy a 5-dimensional array of bytes into thedstNdArraystatic voidcopyTo(byte[][][][] src, ByteNdArray dst)Copy a 4-dimensional array of bytes into thedstNdArraystatic voidcopyTo(byte[][][] src, ByteNdArray dst)Copy a 3-dimensional array of bytes into thedstNdArraystatic voidcopyTo(byte[][] src, ByteNdArray dst)Copy a 2-dimensional array of bytes into thedstNdArraystatic voidcopyTo(byte[] src, ByteNdArray dst)Copy an array of bytes into thedstNdArraystatic voidcopyTo(double[][][][][][] src, DoubleNdArray dst)Copy a 6-dimensional array of doubles into thedstNdArraystatic voidcopyTo(double[][][][][] src, DoubleNdArray dst)Copy a 5-dimensional array of doubles into thedstNdArraystatic voidcopyTo(double[][][][] src, DoubleNdArray dst)Copy a 4-dimensional array of doubles into thedstNdArraystatic voidcopyTo(double[][][] src, DoubleNdArray dst)Copy a 3-dimensional array of doubles into thedstNdArraystatic voidcopyTo(double[][] src, DoubleNdArray dst)Copy a 2-dimensional array of doubles into thedstNdArraystatic voidcopyTo(double[] src, DoubleNdArray dst)Copy an array of doubles into thedstNdArraystatic voidcopyTo(float[][][][][][] src, FloatNdArray dst)Copy a 6-dimensional array of floats into thedstNdArraystatic voidcopyTo(float[][][][][] src, FloatNdArray dst)Copy a 5-dimensional array of floats into thedstNdArraystatic voidcopyTo(float[][][][] src, FloatNdArray dst)Copy a 4-dimensional array of floats into thedstNdArraystatic voidcopyTo(float[][][] src, FloatNdArray dst)Copy a 3-dimensional array of floats into thedstNdArraystatic voidcopyTo(float[][] src, FloatNdArray dst)Copy a 2-dimensional array of floats into thedstNdArraystatic voidcopyTo(float[] src, FloatNdArray dst)Copy an array of floats into thedstNdArraystatic voidcopyTo(int[][][][][][] src, IntNdArray dst)Copy a 6-dimensional array of ints into thedstNdArraystatic voidcopyTo(int[][][][][] src, IntNdArray dst)Copy a 5-dimensional array of ints into thedstNdArraystatic voidcopyTo(int[][][][] src, IntNdArray dst)Copy a 4-dimensional array of ints into thedstNdArraystatic voidcopyTo(int[][][] src, IntNdArray dst)Copy a 3-dimensional array of ints into thedstNdArraystatic voidcopyTo(int[][] src, IntNdArray dst)Copy a 2-dimensional array of ints into thedstNdArraystatic voidcopyTo(int[] src, IntNdArray dst)Copy an array of ints into thedstNdArraystatic voidcopyTo(long[][][][][][] src, LongNdArray dst)Copy a 6-dimensional array of longs into thedstNdArraystatic voidcopyTo(long[][][][][] src, LongNdArray dst)Copy a 5-dimensional array of longs into thedstNdArraystatic voidcopyTo(long[][][][] src, LongNdArray dst)Copy a 4-dimensional array of longs into thedstNdArraystatic voidcopyTo(long[][][] src, LongNdArray dst)Copy a 3-dimensional array of longs into thedstNdArraystatic voidcopyTo(long[][] src, LongNdArray dst)Copy a 2-dimensional array of longs into thedstNdArraystatic voidcopyTo(long[] src, LongNdArray dst)Copy an array of longs into thedstNdArraystatic voidcopyTo(short[][][][][][] src, ShortNdArray dst)Copy a 6-dimensional array of shorts into thedstNdArraystatic voidcopyTo(short[][][][][] src, ShortNdArray dst)Copy a 5-dimensional array of shorts into thedstNdArraystatic voidcopyTo(short[][][][] src, ShortNdArray dst)Copy a 4-dimensional array of shorts into thedstNdArraystatic voidcopyTo(short[][][] src, ShortNdArray dst)Copy a 3-dimensional array of shorts into thedstNdArraystatic voidcopyTo(short[][] src, ShortNdArray dst)Copy a 2-dimensional array of shorts into thedstNdArraystatic voidcopyTo(short[] src, ShortNdArray dst)Copy an array of shorts into thedstNdArraystatic <T> voidcopyTo(T[][][][][][] src, NdArray<T> dst)Copy a 6-dimensional array of objects into thedstNdArraystatic <T> voidcopyTo(T[][][][][] src, NdArray<T> dst)Copy a 5-dimensional array of objects into thedstNdArraystatic <T> voidcopyTo(T[][][][] src, NdArray<T> dst)Copy a 4-dimensional array of objects into thedstNdArraystatic <T> voidcopyTo(T[][][] src, NdArray<T> dst)Copy a 3-dimensional array of objects into thedstNdArraystatic <T> voidcopyTo(T[][] src, NdArray<T> dst)Copy a 2-dimensional array of objects into thedstNdArraystatic <T> voidcopyTo(T[] src, NdArray<T> dst)Copy an array of objects into thedstNdArraystatic BooleanNdArrayndCopyOf(boolean[] array)Copy an array of booleans in a newBooleanNdArraystatic BooleanNdArrayndCopyOf(boolean[][] array)Copy a 2-dimensional array of booleans in a newBooleanNdArraystatic BooleanNdArrayndCopyOf(boolean[][][] array)Copy a 3-dimensional array of booleans in a newBooleanNdArraystatic BooleanNdArrayndCopyOf(boolean[][][][] array)Copy a 4-dimensional array of booleans in a newBooleanNdArraystatic BooleanNdArrayndCopyOf(boolean[][][][][] array)Copy a 5-dimensional array of booleans in a newBooleanNdArraystatic BooleanNdArrayndCopyOf(boolean[][][][][][] array)Copy a 6-dimensional array of booleans in a newBooleanNdArraystatic ByteNdArrayndCopyOf(byte[] array)Copy an array of bytes in a newByteNdArraystatic ByteNdArrayndCopyOf(byte[][] array)Copy a 2-dimensional array of bytes in a newByteNdArraystatic ByteNdArrayndCopyOf(byte[][][] array)Copy a 3-dimensional array of bytes in a newByteNdArraystatic ByteNdArrayndCopyOf(byte[][][][] array)Copy a 4-dimensional array of bytes in a newByteNdArraystatic ByteNdArrayndCopyOf(byte[][][][][] array)Copy a 5-dimensional array of bytes in a newByteNdArraystatic ByteNdArrayndCopyOf(byte[][][][][][] array)Copy a 6-dimensional array of bytes in a newByteNdArraystatic DoubleNdArrayndCopyOf(double[] array)Copy an array of doubles in a newDoubleNdArraystatic DoubleNdArrayndCopyOf(double[][] array)Copy a 2-dimensional array of doubles in a newDoubleNdArraystatic DoubleNdArrayndCopyOf(double[][][] array)Copy a 3-dimensional array of doubles in a newDoubleNdArraystatic DoubleNdArrayndCopyOf(double[][][][] array)Copy a 4-dimensional array of doubles in a newDoubleNdArraystatic DoubleNdArrayndCopyOf(double[][][][][] array)Copy a 5-dimensional array of doubles in a newDoubleNdArraystatic DoubleNdArrayndCopyOf(double[][][][][][] array)Copy a 6-dimensional array of doubles in a newDoubleNdArraystatic FloatNdArrayndCopyOf(float[] array)Copy an array of floats in a newFloatNdArraystatic FloatNdArrayndCopyOf(float[][] array)Copy a 2-dimensional array of floats in a newFloatNdArraystatic FloatNdArrayndCopyOf(float[][][] array)Copy a 3-dimensional array of floats in a newFloatNdArraystatic FloatNdArrayndCopyOf(float[][][][] array)Copy a 4-dimensional array of floats in a newFloatNdArraystatic FloatNdArrayndCopyOf(float[][][][][] array)Copy a 5-dimensional array of floats in a newFloatNdArraystatic FloatNdArrayndCopyOf(float[][][][][][] array)Copy a 6-dimensional array of floats in a newFloatNdArraystatic IntNdArrayndCopyOf(int[] array)Copy an array of ints in a newIntNdArraystatic IntNdArrayndCopyOf(int[][] array)Copy a 2-dimensional array of ints in a newIntNdArraystatic IntNdArrayndCopyOf(int[][][] array)Copy a 3-dimensional array of ints in a newIntNdArraystatic IntNdArrayndCopyOf(int[][][][] array)Copy a 4-dimensional array of ints in a newIntNdArraystatic IntNdArrayndCopyOf(int[][][][][] array)Copy a 5-dimensional array of ints in a newIntNdArraystatic IntNdArrayndCopyOf(int[][][][][][] array)Copy a 6-dimensional array of ints in a newIntNdArraystatic LongNdArrayndCopyOf(long[] array)Copy an array of longs in a newLongNdArraystatic LongNdArrayndCopyOf(long[][] array)Copy a 2-dimensional array of longs in a newLongNdArraystatic LongNdArrayndCopyOf(long[][][] array)Copy a 3-dimensional array of longs in a newLongNdArraystatic LongNdArrayndCopyOf(long[][][][] array)Copy a 4-dimensional array of longs in a newLongNdArraystatic LongNdArrayndCopyOf(long[][][][][] array)Copy a 5-dimensional array of longs in a newLongNdArraystatic LongNdArrayndCopyOf(long[][][][][][] array)Copy a 6-dimensional array of longs in a newLongNdArraystatic ShortNdArrayndCopyOf(short[] array)Copy an array of shorts in a newShortNdArraystatic ShortNdArrayndCopyOf(short[][] array)Copy a 2-dimensional array of shorts in a newShortNdArraystatic ShortNdArrayndCopyOf(short[][][] array)Copy a 3-dimensional array of shorts in a newShortNdArraystatic ShortNdArrayndCopyOf(short[][][][] array)Copy a 4-dimensional array of shorts in a newShortNdArraystatic ShortNdArrayndCopyOf(short[][][][][] array)Copy a 5-dimensional array of shorts in a newShortNdArraystatic ShortNdArrayndCopyOf(short[][][][][][] array)Copy a 6-dimensional array of shorts in a newShortNdArraystatic <T> NdArray<T>ndCopyOf(T[] array)Copy an array of objects in a newNdArraystatic <T> NdArray<T>ndCopyOf(T[][] array)Copy a 2-dimensional array of objects in a newNdArraystatic <T> NdArray<T>ndCopyOf(T[][][] array)Copy a 3-dimensional array of objects in a newNdArraystatic <T> NdArray<T>ndCopyOf(T[][][][] array)Copy a 4-dimensional array of objects in a newNdArraystatic <T> NdArray<T>ndCopyOf(T[][][][][] array)Copy a 5-dimensional array of objects in a newNdArraystatic <T> NdArray<T>ndCopyOf(T[][][][][][] array)Copy a 6-dimensional array of objects in a newNdArraystatic ShapeshapeOf(boolean[] array)Compute the shape of a boolean array.static ShapeshapeOf(boolean[][] array)Compute the shape of a 2-dimensional boolean array.static ShapeshapeOf(boolean[][][] array)Compute the shape of a 3-dimensional boolean array.static ShapeshapeOf(boolean[][][][] array)Compute the shape of a 4-dimensional boolean array.static ShapeshapeOf(boolean[][][][][] array)Compute the shape of a 5-dimensional boolean array.static ShapeshapeOf(boolean[][][][][][] array)Compute the shape of a 6-dimensional boolean array.static ShapeshapeOf(byte[] array)Compute the shape of a byte array.static ShapeshapeOf(byte[][] array)Compute the shape of a 2-dimensional byte array.static ShapeshapeOf(byte[][][] array)Compute the shape of a 3-dimensional byte array.static ShapeshapeOf(byte[][][][] array)Compute the shape of a 4-dimensional byte array.static ShapeshapeOf(byte[][][][][] array)Compute the shape of a 5-dimensional byte array.static ShapeshapeOf(byte[][][][][][] array)Compute the shape of a 6-dimensional byte array.static ShapeshapeOf(double[] array)Compute the shape of a double array.static ShapeshapeOf(double[][] array)Compute the shape of a 2-dimensional double array.static ShapeshapeOf(double[][][] array)Compute the shape of a 3-dimensional double array.static ShapeshapeOf(double[][][][] array)Compute the shape of a 4-dimensional double array.static ShapeshapeOf(double[][][][][] array)Compute the shape of a 5-dimensional double array.static ShapeshapeOf(double[][][][][][] array)Compute the shape of a 6-dimensional double array.static ShapeshapeOf(float[] array)Compute the shape of a float array.static ShapeshapeOf(float[][] array)Compute the shape of a 2-dimensional float array.static ShapeshapeOf(float[][][] array)Compute the shape of a 3-dimensional float array.static ShapeshapeOf(float[][][][] array)Compute the shape of a 4-dimensional float array.static ShapeshapeOf(float[][][][][] array)Compute the shape of a 5-dimensional float array.static ShapeshapeOf(float[][][][][][] array)Compute the shape of a 6-dimensional float array.static ShapeshapeOf(int[] array)Compute the shape of an int array.static ShapeshapeOf(int[][] array)Compute the shape of a 2-dimensional int array.static ShapeshapeOf(int[][][] array)Compute the shape of a 3-dimensional int array.static ShapeshapeOf(int[][][][] array)Compute the shape of a 4-dimensional int array.static ShapeshapeOf(int[][][][][] array)Compute the shape of a 5-dimensional int array.static ShapeshapeOf(int[][][][][][] array)Compute the shape of a 6-dimensional int array.static ShapeshapeOf(long[] array)Compute the shape of a long array.static ShapeshapeOf(long[][] array)Compute the shape of a 2-dimensional long array.static ShapeshapeOf(long[][][] array)Compute the shape of a 3-dimensional long array.static ShapeshapeOf(long[][][][] array)Compute the shape of a 4-dimensional long array.static ShapeshapeOf(long[][][][][] array)Compute the shape of a 5-dimensional long array.static ShapeshapeOf(long[][][][][][] array)Compute the shape of a 6-dimensional long array.static ShapeshapeOf(short[] array)Compute the shape of a short array.static ShapeshapeOf(short[][] array)Compute the shape of a 2-dimensional short array.static ShapeshapeOf(short[][][] array)Compute the shape of a 3-dimensional short array.static ShapeshapeOf(short[][][][] array)Compute the shape of a 4-dimensional short array.static ShapeshapeOf(short[][][][][] array)Compute the shape of a 5-dimensional short array.static ShapeshapeOf(short[][][][][][] array)Compute the shape of a 6-dimensional short array.static <T> ShapeshapeOf(T[] array)Compute the shape of an object array.static <T> ShapeshapeOf(T[][] array)Compute the shape of a 2-dimensional object array.static <T> ShapeshapeOf(T[][][] array)Compute the shape of a 3-dimensional object array.static <T> ShapeshapeOf(T[][][][] array)Compute the shape of a 4-dimensional object array.static <T> ShapeshapeOf(T[][][][][] array)Compute the shape of a 5-dimensional object array.static <T> ShapeshapeOf(T[][][][][][] array)Compute the shape of a 6-dimensional object array.
-
-
-
Method Detail
-
ndCopyOf
public static IntNdArray ndCopyOf(int[] array)
Copy an array of ints in a newIntNdArray- Parameters:
array- source array- Returns:
- the
IntNdArraycopy
-
ndCopyOf
public static IntNdArray ndCopyOf(int[][] array)
Copy a 2-dimensional array of ints in a newIntNdArray- Parameters:
array- source array- Returns:
- the
IntNdArraycopy
-
ndCopyOf
public static IntNdArray ndCopyOf(int[][][] array)
Copy a 3-dimensional array of ints in a newIntNdArray- Parameters:
array- source array- Returns:
- the
IntNdArraycopy
-
ndCopyOf
public static IntNdArray ndCopyOf(int[][][][] array)
Copy a 4-dimensional array of ints in a newIntNdArray- Parameters:
array- source array- Returns:
- the
IntNdArraycopy
-
ndCopyOf
public static IntNdArray ndCopyOf(int[][][][][] array)
Copy a 5-dimensional array of ints in a newIntNdArray- Parameters:
array- source array- Returns:
- the
IntNdArraycopy
-
ndCopyOf
public static IntNdArray ndCopyOf(int[][][][][][] array)
Copy a 6-dimensional array of ints in a newIntNdArray- Parameters:
array- source array- Returns:
- the
IntNdArraycopy
-
ndCopyOf
public static LongNdArray ndCopyOf(long[] array)
Copy an array of longs in a newLongNdArray- Parameters:
array- source array- Returns:
- the
LongNdArraycopy
-
ndCopyOf
public static LongNdArray ndCopyOf(long[][] array)
Copy a 2-dimensional array of longs in a newLongNdArray- Parameters:
array- source array- Returns:
- the
LongNdArraycopy
-
ndCopyOf
public static LongNdArray ndCopyOf(long[][][] array)
Copy a 3-dimensional array of longs in a newLongNdArray- Parameters:
array- source array- Returns:
- the
LongNdArraycopy
-
ndCopyOf
public static LongNdArray ndCopyOf(long[][][][] array)
Copy a 4-dimensional array of longs in a newLongNdArray- Parameters:
array- source array- Returns:
- the
LongNdArraycopy
-
ndCopyOf
public static LongNdArray ndCopyOf(long[][][][][] array)
Copy a 5-dimensional array of longs in a newLongNdArray- Parameters:
array- source array- Returns:
- the
LongNdArraycopy
-
ndCopyOf
public static LongNdArray ndCopyOf(long[][][][][][] array)
Copy a 6-dimensional array of longs in a newLongNdArray- Parameters:
array- source array- Returns:
- the
LongNdArraycopy
-
ndCopyOf
public static FloatNdArray ndCopyOf(float[] array)
Copy an array of floats in a newFloatNdArray- Parameters:
array- source array- Returns:
- the
FloatNdArraycopy
-
ndCopyOf
public static FloatNdArray ndCopyOf(float[][] array)
Copy a 2-dimensional array of floats in a newFloatNdArray- Parameters:
array- source array- Returns:
- the
FloatNdArraycopy
-
ndCopyOf
public static FloatNdArray ndCopyOf(float[][][] array)
Copy a 3-dimensional array of floats in a newFloatNdArray- Parameters:
array- source array- Returns:
- the
FloatNdArraycopy
-
ndCopyOf
public static FloatNdArray ndCopyOf(float[][][][] array)
Copy a 4-dimensional array of floats in a newFloatNdArray- Parameters:
array- source array- Returns:
- the
FloatNdArraycopy
-
ndCopyOf
public static FloatNdArray ndCopyOf(float[][][][][] array)
Copy a 5-dimensional array of floats in a newFloatNdArray- Parameters:
array- source array- Returns:
- the
FloatNdArraycopy
-
ndCopyOf
public static FloatNdArray ndCopyOf(float[][][][][][] array)
Copy a 6-dimensional array of floats in a newFloatNdArray- Parameters:
array- source array- Returns:
- the
FloatNdArraycopy
-
ndCopyOf
public static DoubleNdArray ndCopyOf(double[] array)
Copy an array of doubles in a newDoubleNdArray- Parameters:
array- source array- Returns:
- the
DoubleNdArraycopy
-
ndCopyOf
public static DoubleNdArray ndCopyOf(double[][] array)
Copy a 2-dimensional array of doubles in a newDoubleNdArray- Parameters:
array- source array- Returns:
- the
DoubleNdArraycopy
-
ndCopyOf
public static DoubleNdArray ndCopyOf(double[][][] array)
Copy a 3-dimensional array of doubles in a newDoubleNdArray- Parameters:
array- source array- Returns:
- the
DoubleNdArraycopy
-
ndCopyOf
public static DoubleNdArray ndCopyOf(double[][][][] array)
Copy a 4-dimensional array of doubles in a newDoubleNdArray- Parameters:
array- source array- Returns:
- the
DoubleNdArraycopy
-
ndCopyOf
public static DoubleNdArray ndCopyOf(double[][][][][] array)
Copy a 5-dimensional array of doubles in a newDoubleNdArray- Parameters:
array- source array- Returns:
- the
DoubleNdArraycopy
-
ndCopyOf
public static DoubleNdArray ndCopyOf(double[][][][][][] array)
Copy a 6-dimensional array of doubles in a newDoubleNdArray- Parameters:
array- source array- Returns:
- the
DoubleNdArraycopy
-
ndCopyOf
public static ByteNdArray ndCopyOf(byte[] array)
Copy an array of bytes in a newByteNdArray- Parameters:
array- source array- Returns:
- the
ByteNdArraycopy
-
ndCopyOf
public static ByteNdArray ndCopyOf(byte[][] array)
Copy a 2-dimensional array of bytes in a newByteNdArray- Parameters:
array- source array- Returns:
- the
ByteNdArraycopy
-
ndCopyOf
public static ByteNdArray ndCopyOf(byte[][][] array)
Copy a 3-dimensional array of bytes in a newByteNdArray- Parameters:
array- source array- Returns:
- the
ByteNdArraycopy
-
ndCopyOf
public static ByteNdArray ndCopyOf(byte[][][][] array)
Copy a 4-dimensional array of bytes in a newByteNdArray- Parameters:
array- source array- Returns:
- the
ByteNdArraycopy
-
ndCopyOf
public static ByteNdArray ndCopyOf(byte[][][][][] array)
Copy a 5-dimensional array of bytes in a newByteNdArray- Parameters:
array- source array- Returns:
- the
ByteNdArraycopy
-
ndCopyOf
public static ByteNdArray ndCopyOf(byte[][][][][][] array)
Copy a 6-dimensional array of bytes in a newByteNdArray- Parameters:
array- source array- Returns:
- the
ByteNdArraycopy
-
ndCopyOf
public static ShortNdArray ndCopyOf(short[] array)
Copy an array of shorts in a newShortNdArray- Parameters:
array- source array- Returns:
- the
ShortNdArraycopy
-
ndCopyOf
public static ShortNdArray ndCopyOf(short[][] array)
Copy a 2-dimensional array of shorts in a newShortNdArray- Parameters:
array- source array- Returns:
- the
ShortNdArraycopy
-
ndCopyOf
public static ShortNdArray ndCopyOf(short[][][] array)
Copy a 3-dimensional array of shorts in a newShortNdArray- Parameters:
array- source array- Returns:
- the
ShortNdArraycopy
-
ndCopyOf
public static ShortNdArray ndCopyOf(short[][][][] array)
Copy a 4-dimensional array of shorts in a newShortNdArray- Parameters:
array- source array- Returns:
- the
ShortNdArraycopy
-
ndCopyOf
public static ShortNdArray ndCopyOf(short[][][][][] array)
Copy a 5-dimensional array of shorts in a newShortNdArray- Parameters:
array- source array- Returns:
- the
ShortNdArraycopy
-
ndCopyOf
public static ShortNdArray ndCopyOf(short[][][][][][] array)
Copy a 6-dimensional array of shorts in a newShortNdArray- Parameters:
array- source array- Returns:
- the
ShortNdArraycopy
-
ndCopyOf
public static BooleanNdArray ndCopyOf(boolean[] array)
Copy an array of booleans in a newBooleanNdArray- Parameters:
array- source array- Returns:
- the
BooleanNdArraycopy
-
ndCopyOf
public static BooleanNdArray ndCopyOf(boolean[][] array)
Copy a 2-dimensional array of booleans in a newBooleanNdArray- Parameters:
array- source array- Returns:
- the
BooleanNdArraycopy
-
ndCopyOf
public static BooleanNdArray ndCopyOf(boolean[][][] array)
Copy a 3-dimensional array of booleans in a newBooleanNdArray- Parameters:
array- source array- Returns:
- the
BooleanNdArraycopy
-
ndCopyOf
public static BooleanNdArray ndCopyOf(boolean[][][][] array)
Copy a 4-dimensional array of booleans in a newBooleanNdArray- Parameters:
array- source array- Returns:
- the
BooleanNdArraycopy
-
ndCopyOf
public static BooleanNdArray ndCopyOf(boolean[][][][][] array)
Copy a 5-dimensional array of booleans in a newBooleanNdArray- Parameters:
array- source array- Returns:
- the
BooleanNdArraycopy
-
ndCopyOf
public static BooleanNdArray ndCopyOf(boolean[][][][][][] array)
Copy a 6-dimensional array of booleans in a newBooleanNdArray- Parameters:
array- source array- Returns:
- the
BooleanNdArraycopy
-
ndCopyOf
public static <T> NdArray<T> ndCopyOf(T[] array)
Copy an array of objects in a newNdArray- Type Parameters:
T- data type- Parameters:
array- source array- Returns:
- the
NdArraycopy
-
ndCopyOf
public static <T> NdArray<T> ndCopyOf(T[][] array)
Copy a 2-dimensional array of objects in a newNdArray- Type Parameters:
T- data type- Parameters:
array- source array- Returns:
- the
NdArraycopy
-
ndCopyOf
public static <T> NdArray<T> ndCopyOf(T[][][] array)
Copy a 3-dimensional array of objects in a newNdArray- Type Parameters:
T- data type- Parameters:
array- source array- Returns:
- the
NdArraycopy
-
ndCopyOf
public static <T> NdArray<T> ndCopyOf(T[][][][] array)
Copy a 4-dimensional array of objects in a newNdArray- Type Parameters:
T- data type- Parameters:
array- source array- Returns:
- the
NdArraycopy
-
ndCopyOf
public static <T> NdArray<T> ndCopyOf(T[][][][][] array)
Copy a 5-dimensional array of objects in a newNdArray- Type Parameters:
T- data type- Parameters:
array- source array- Returns:
- the
NdArraycopy
-
ndCopyOf
public static <T> NdArray<T> ndCopyOf(T[][][][][][] array)
Copy a 6-dimensional array of objects in a newNdArray- Type Parameters:
T- data type- Parameters:
array- source array- Returns:
- the
NdArraycopy
-
array1dCopyOf
public static int[] array1dCopyOf(IntNdArray ndArray)
Copy aIntNdArrayin a new 1-dimension standard array of ints- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-1 or has a shape that exceeds standard arrays limits
-
array2dCopyOf
public static int[][] array2dCopyOf(IntNdArray ndArray)
Copy aIntNdArrayin a new 2-dimension standard array of ints- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-2 or has a shape that exceeds standard arrays limits
-
array3dCopyOf
public static int[][][] array3dCopyOf(IntNdArray ndArray)
Copy aIntNdArrayin a new 3-dimension standard array of ints- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-3 or has a shape that exceeds standard arrays limits
-
array4dCopyOf
public static int[][][][] array4dCopyOf(IntNdArray ndArray)
Copy aIntNdArrayin a new 4-dimension standard array of ints- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-4 or has a shape that exceeds standard arrays limits
-
array5dCopyOf
public static int[][][][][] array5dCopyOf(IntNdArray ndArray)
Copy aIntNdArrayin a new 5-dimension standard array of ints- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-5 or has a shape that exceeds standard arrays limits
-
array6dCopyOf
public static int[][][][][][] array6dCopyOf(IntNdArray ndArray)
Copy aIntNdArrayin a new 6-dimension standard array of ints- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-6 or has a shape that exceeds standard arrays limits
-
array1dCopyOf
public static long[] array1dCopyOf(LongNdArray ndArray)
Copy aLongNdArrayin a new 1-dimension standard array of longs- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-1 or has a shape that exceeds standard arrays limits
-
array2dCopyOf
public static long[][] array2dCopyOf(LongNdArray ndArray)
Copy aLongNdArrayin a new 2-dimension standard array of longs- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-2 or has a shape that exceeds standard arrays limits
-
array3dCopyOf
public static long[][][] array3dCopyOf(LongNdArray ndArray)
Copy aLongNdArrayin a new 3-dimension standard array of longs- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-3 or has a shape that exceeds standard arrays limits
-
array4dCopyOf
public static long[][][][] array4dCopyOf(LongNdArray ndArray)
Copy aLongNdArrayin a new 4-dimension standard array of longs- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-4 or has a shape that exceeds standard arrays limits
-
array5dCopyOf
public static long[][][][][] array5dCopyOf(LongNdArray ndArray)
Copy aLongNdArrayin a new 5-dimension standard array of longs- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-5 or has a shape that exceeds standard arrays limits
-
array6dCopyOf
public static long[][][][][][] array6dCopyOf(LongNdArray ndArray)
Copy aLongNdArrayin a new 6-dimension standard array of longs- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-6 or has a shape that exceeds standard arrays limits
-
array1dCopyOf
public static float[] array1dCopyOf(FloatNdArray ndArray)
Copy aFloatNdArrayin a new 1-dimension standard array of floats- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-1 or has a shape that exceeds standard arrays limits
-
array2dCopyOf
public static float[][] array2dCopyOf(FloatNdArray ndArray)
Copy aFloatNdArrayin a new 2-dimension standard array of floats- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-2 or has a shape that exceeds standard arrays limits
-
array3dCopyOf
public static float[][][] array3dCopyOf(FloatNdArray ndArray)
Copy aFloatNdArrayin a new 3-dimension standard array of floats- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-3 or has a shape that exceeds standard arrays limits
-
array4dCopyOf
public static float[][][][] array4dCopyOf(FloatNdArray ndArray)
Copy aFloatNdArrayin a new 4-dimension standard array of floats- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-4 or has a shape that exceeds standard arrays limits
-
array5dCopyOf
public static float[][][][][] array5dCopyOf(FloatNdArray ndArray)
Copy aFloatNdArrayin a new 5-dimension standard array of floats- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-5 or has a shape that exceeds standard arrays limits
-
array6dCopyOf
public static float[][][][][][] array6dCopyOf(FloatNdArray ndArray)
Copy aFloatNdArrayin a new 6-dimension standard array of floats- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-6 or has a shape that exceeds standard arrays limits
-
array1dCopyOf
public static double[] array1dCopyOf(DoubleNdArray ndArray)
Copy aDoubleNdArrayin a new 1-dimension standard array of doubles- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-1 or has a shape that exceeds standard arrays limits
-
array2dCopyOf
public static double[][] array2dCopyOf(DoubleNdArray ndArray)
Copy aDoubleNdArrayin a new 2-dimension standard array of doubles- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-2 or has a shape that exceeds standard arrays limits
-
array3dCopyOf
public static double[][][] array3dCopyOf(DoubleNdArray ndArray)
Copy aDoubleNdArrayin a new 3-dimension standard array of doubles- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-3 or has a shape that exceeds standard arrays limits
-
array4dCopyOf
public static double[][][][] array4dCopyOf(DoubleNdArray ndArray)
Copy aDoubleNdArrayin a new 4-dimension standard array of doubles- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-4 or has a shape that exceeds standard arrays limits
-
array5dCopyOf
public static double[][][][][] array5dCopyOf(DoubleNdArray ndArray)
Copy aDoubleNdArrayin a new 5-dimension standard array of doubles- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-5 or has a shape that exceeds standard arrays limits
-
array6dCopyOf
public static double[][][][][][] array6dCopyOf(DoubleNdArray ndArray)
Copy aDoubleNdArrayin a new 6-dimension standard array of doubles- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-6 or has a shape that exceeds standard arrays limits
-
array1dCopyOf
public static byte[] array1dCopyOf(ByteNdArray ndArray)
Copy aByteNdArrayin a new 1-dimension standard array of bytes- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-1 or has a shape that exceeds standard arrays limits
-
array2dCopyOf
public static byte[][] array2dCopyOf(ByteNdArray ndArray)
Copy aByteNdArrayin a new 2-dimension standard array of bytes- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-2 or has a shape that exceeds standard arrays limits
-
array3dCopyOf
public static byte[][][] array3dCopyOf(ByteNdArray ndArray)
Copy aByteNdArrayin a new 3-dimension standard array of bytes- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-3 or has a shape that exceeds standard arrays limits
-
array4dCopyOf
public static byte[][][][] array4dCopyOf(ByteNdArray ndArray)
Copy aByteNdArrayin a new 4-dimension standard array of bytes- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-4 or has a shape that exceeds standard arrays limits
-
array5dCopyOf
public static byte[][][][][] array5dCopyOf(ByteNdArray ndArray)
Copy aByteNdArrayin a new 5-dimension standard array of bytes- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-5 or has a shape that exceeds standard arrays limits
-
array6dCopyOf
public static byte[][][][][][] array6dCopyOf(ByteNdArray ndArray)
Copy aByteNdArrayin a new 6-dimension standard array of bytes- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-6 or has a shape that exceeds standard arrays limits
-
array1dCopyOf
public static short[] array1dCopyOf(ShortNdArray ndArray)
Copy aShortNdArrayin a new 1-dimension standard array of shorts- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-1 or has a shape that exceeds standard arrays limits
-
array2dCopyOf
public static short[][] array2dCopyOf(ShortNdArray ndArray)
Copy aShortNdArrayin a new 2-dimension standard array of shorts- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-2 or has a shape that exceeds standard arrays limits
-
array3dCopyOf
public static short[][][] array3dCopyOf(ShortNdArray ndArray)
Copy aShortNdArrayin a new 3-dimension standard array of shorts- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-3 or has a shape that exceeds standard arrays limits
-
array4dCopyOf
public static short[][][][] array4dCopyOf(ShortNdArray ndArray)
Copy aShortNdArrayin a new 4-dimension standard array of shorts- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-4 or has a shape that exceeds standard arrays limits
-
array5dCopyOf
public static short[][][][][] array5dCopyOf(ShortNdArray ndArray)
Copy aShortNdArrayin a new 5-dimension standard array of shorts- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-5 or has a shape that exceeds standard arrays limits
-
array6dCopyOf
public static short[][][][][][] array6dCopyOf(ShortNdArray ndArray)
Copy aShortNdArrayin a new 6-dimension standard array of shorts- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-6 or has a shape that exceeds standard arrays limits
-
array1dCopyOf
public static boolean[] array1dCopyOf(BooleanNdArray ndArray)
Copy aBooleanNdArrayin a new 1-dimension standard array of booleans- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-1 or has a shape that exceeds standard arrays limits
-
array2dCopyOf
public static boolean[][] array2dCopyOf(BooleanNdArray ndArray)
Copy aBooleanNdArrayin a new 2-dimension standard array of booleans- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-2 or has a shape that exceeds standard arrays limits
-
array3dCopyOf
public static boolean[][][] array3dCopyOf(BooleanNdArray ndArray)
Copy aBooleanNdArrayin a new 3-dimension standard array of booleans- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-3 or has a shape that exceeds standard arrays limits
-
array4dCopyOf
public static boolean[][][][] array4dCopyOf(BooleanNdArray ndArray)
Copy aBooleanNdArrayin a new 4-dimension standard array of booleans- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-4 or has a shape that exceeds standard arrays limits
-
array5dCopyOf
public static boolean[][][][][] array5dCopyOf(BooleanNdArray ndArray)
Copy aBooleanNdArrayin a new 5-dimension standard array of booleans- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-5 or has a shape that exceeds standard arrays limits
-
array6dCopyOf
public static boolean[][][][][][] array6dCopyOf(BooleanNdArray ndArray)
Copy aBooleanNdArrayin a new 6-dimension standard array of booleans- Parameters:
ndArray- source array- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-6 or has a shape that exceeds standard arrays limits
-
array1dCopyOf
public static <T> T[] array1dCopyOf(NdArray<T> ndArray, Class<T> objectType)
Copy aNdArray<T>in a new 1-dimension standard array of objects- Type Parameters:
T- data type- Parameters:
ndArray- source arrayobjectType- type of object- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-1 or has a shape that exceeds standard arrays limits
-
array2dCopyOf
public static <T> T[][] array2dCopyOf(NdArray<T> ndArray, Class<T> objectType)
Copy aNdArray<T>in a new 2-dimension standard array of objects- Type Parameters:
T- data type- Parameters:
ndArray- source arrayobjectType- type of object- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-2 or has a shape that exceeds standard arrays limits
-
array3dCopyOf
public static <T> T[][][] array3dCopyOf(NdArray<T> ndArray, Class<T> objectType)
Copy aNdArray<T>in a new 3-dimension standard array of objects- Type Parameters:
T- data type- Parameters:
ndArray- source arrayobjectType- type of object- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-3 or has a shape that exceeds standard arrays limits
-
array4dCopyOf
public static <T> T[][][][] array4dCopyOf(NdArray<T> ndArray, Class<T> objectType)
Copy aNdArray<T>in a new 4-dimension standard array of objects- Type Parameters:
T- data type- Parameters:
ndArray- source arrayobjectType- type of object- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-4 or has a shape that exceeds standard arrays limits
-
array5dCopyOf
public static <T> T[][][][][] array5dCopyOf(NdArray<T> ndArray, Class<T> objectType)
Copy aNdArray<T>in a new 5-dimension standard array of objects- Type Parameters:
T- data type- Parameters:
ndArray- source arrayobjectType- type of object- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-5 or has a shape that exceeds standard arrays limits
-
array6dCopyOf
public static <T> T[][][][][][] array6dCopyOf(NdArray<T> ndArray, Class<T> objectType)
Copy aNdArray<T>in a new 6-dimension standard array of objects- Type Parameters:
T- data type- Parameters:
ndArray- source arrayobjectType- type of object- Returns:
- the array copy
- Throws:
IllegalArgumentException- ifndArrayis not of rank-6 or has a shape that exceeds standard arrays limits
-
copyTo
public static void copyTo(int[] src, IntNdArray dst)Copy an array of ints into thedstNdArray- Parameters:
src- source arraydst- destination rank-1 array- Throws:
IllegalArgumentException- ifdstis not of rank-1 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(int[][] src, IntNdArray dst)Copy a 2-dimensional array of ints into thedstNdArray- Parameters:
src- source arraydst- destination rank-2 array- Throws:
IllegalArgumentException- ifdstis not of rank-2 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(int[][][] src, IntNdArray dst)Copy a 3-dimensional array of ints into thedstNdArray- Parameters:
src- source arraydst- destination rank-3 array- Throws:
IllegalArgumentException- ifdstis not of rank-3 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(int[][][][] src, IntNdArray dst)Copy a 4-dimensional array of ints into thedstNdArray- Parameters:
src- source arraydst- destination rank-4 array- Throws:
IllegalArgumentException- ifdstis not of rank-4 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(int[][][][][] src, IntNdArray dst)Copy a 5-dimensional array of ints into thedstNdArray- Parameters:
src- source arraydst- destination rank-5 array- Throws:
IllegalArgumentException- ifdstis not of rank-5 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(int[][][][][][] src, IntNdArray dst)Copy a 6-dimensional array of ints into thedstNdArray- Parameters:
src- source arraydst- destination rank-6 array- Throws:
IllegalArgumentException- ifdstis not of rank-6 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(long[] src, LongNdArray dst)Copy an array of longs into thedstNdArray- Parameters:
src- source arraydst- destination rank-1 array- Throws:
IllegalArgumentException- ifdstis not of rank-1 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(long[][] src, LongNdArray dst)Copy a 2-dimensional array of longs into thedstNdArray- Parameters:
src- source arraydst- destination rank-2 array- Throws:
IllegalArgumentException- ifdstis not of rank-2 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(long[][][] src, LongNdArray dst)Copy a 3-dimensional array of longs into thedstNdArray- Parameters:
src- source arraydst- destination rank-3 array- Throws:
IllegalArgumentException- ifdstis not of rank-3 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(long[][][][] src, LongNdArray dst)Copy a 4-dimensional array of longs into thedstNdArray- Parameters:
src- source arraydst- destination rank-4 array- Throws:
IllegalArgumentException- ifdstis not of rank-4 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(long[][][][][] src, LongNdArray dst)Copy a 5-dimensional array of longs into thedstNdArray- Parameters:
src- source arraydst- destination rank-5 array- Throws:
IllegalArgumentException- ifdstis not of rank-5 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(long[][][][][][] src, LongNdArray dst)Copy a 6-dimensional array of longs into thedstNdArray- Parameters:
src- source arraydst- destination rank-6 array- Throws:
IllegalArgumentException- ifdstis not of rank-6 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(float[] src, FloatNdArray dst)Copy an array of floats into thedstNdArray- Parameters:
src- source arraydst- destination rank-1 array- Throws:
IllegalArgumentException- ifdstis not of rank-1 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(float[][] src, FloatNdArray dst)Copy a 2-dimensional array of floats into thedstNdArray- Parameters:
src- source arraydst- destination rank-2 array- Throws:
IllegalArgumentException- ifdstis not of rank-2 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(float[][][] src, FloatNdArray dst)Copy a 3-dimensional array of floats into thedstNdArray- Parameters:
src- source arraydst- destination rank-3 array- Throws:
IllegalArgumentException- ifdstis not of rank-3 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(float[][][][] src, FloatNdArray dst)Copy a 4-dimensional array of floats into thedstNdArray- Parameters:
src- source arraydst- destination rank-4 array- Throws:
IllegalArgumentException- ifdstis not of rank-4 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(float[][][][][] src, FloatNdArray dst)Copy a 5-dimensional array of floats into thedstNdArray- Parameters:
src- source arraydst- destination rank-5 array- Throws:
IllegalArgumentException- ifdstis not of rank-5 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(float[][][][][][] src, FloatNdArray dst)Copy a 6-dimensional array of floats into thedstNdArray- Parameters:
src- source arraydst- destination rank-6 array- Throws:
IllegalArgumentException- ifdstis not of rank-6 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(double[] src, DoubleNdArray dst)Copy an array of doubles into thedstNdArray- Parameters:
src- source arraydst- destination rank-1 array- Throws:
IllegalArgumentException- ifdstis not of rank-1 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(double[][] src, DoubleNdArray dst)Copy a 2-dimensional array of doubles into thedstNdArray- Parameters:
src- source arraydst- destination rank-2 array- Throws:
IllegalArgumentException- ifdstis not of rank-2 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(double[][][] src, DoubleNdArray dst)Copy a 3-dimensional array of doubles into thedstNdArray- Parameters:
src- source arraydst- destination rank-3 array- Throws:
IllegalArgumentException- ifdstis not of rank-3 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(double[][][][] src, DoubleNdArray dst)Copy a 4-dimensional array of doubles into thedstNdArray- Parameters:
src- source arraydst- destination rank-4 array- Throws:
IllegalArgumentException- ifdstis not of rank-4 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(double[][][][][] src, DoubleNdArray dst)Copy a 5-dimensional array of doubles into thedstNdArray- Parameters:
src- source arraydst- destination rank-5 array- Throws:
IllegalArgumentException- ifdstis not of rank-5 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(double[][][][][][] src, DoubleNdArray dst)Copy a 6-dimensional array of doubles into thedstNdArray- Parameters:
src- source arraydst- destination rank-6 array- Throws:
IllegalArgumentException- ifdstis not of rank-6 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(byte[] src, ByteNdArray dst)Copy an array of bytes into thedstNdArray- Parameters:
src- source arraydst- destination rank-1 array- Throws:
IllegalArgumentException- ifdstis not of rank-1 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(byte[][] src, ByteNdArray dst)Copy a 2-dimensional array of bytes into thedstNdArray- Parameters:
src- source arraydst- destination rank-2 array- Throws:
IllegalArgumentException- ifdstis not of rank-2 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(byte[][][] src, ByteNdArray dst)Copy a 3-dimensional array of bytes into thedstNdArray- Parameters:
src- source arraydst- destination rank-3 array- Throws:
IllegalArgumentException- ifdstis not of rank-3 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(byte[][][][] src, ByteNdArray dst)Copy a 4-dimensional array of bytes into thedstNdArray- Parameters:
src- source arraydst- destination rank-4 array- Throws:
IllegalArgumentException- ifdstis not of rank-4 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(byte[][][][][] src, ByteNdArray dst)Copy a 5-dimensional array of bytes into thedstNdArray- Parameters:
src- source arraydst- destination rank-5 array- Throws:
IllegalArgumentException- ifdstis not of rank-5 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(byte[][][][][][] src, ByteNdArray dst)Copy a 6-dimensional array of bytes into thedstNdArray- Parameters:
src- source arraydst- destination rank-6 array- Throws:
IllegalArgumentException- ifdstis not of rank-6 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(short[] src, ShortNdArray dst)Copy an array of shorts into thedstNdArray- Parameters:
src- source arraydst- destination rank-1 array- Throws:
IllegalArgumentException- ifdstis not of rank-1 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(short[][] src, ShortNdArray dst)Copy a 2-dimensional array of shorts into thedstNdArray- Parameters:
src- source arraydst- destination rank-2 array- Throws:
IllegalArgumentException- ifdstis not of rank-2 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(short[][][] src, ShortNdArray dst)Copy a 3-dimensional array of shorts into thedstNdArray- Parameters:
src- source arraydst- destination rank-3 array- Throws:
IllegalArgumentException- ifdstis not of rank-3 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(short[][][][] src, ShortNdArray dst)Copy a 4-dimensional array of shorts into thedstNdArray- Parameters:
src- source arraydst- destination rank-4 array- Throws:
IllegalArgumentException- ifdstis not of rank-4 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(short[][][][][] src, ShortNdArray dst)Copy a 5-dimensional array of shorts into thedstNdArray- Parameters:
src- source arraydst- destination rank-5 array- Throws:
IllegalArgumentException- ifdstis not of rank-5 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(short[][][][][][] src, ShortNdArray dst)Copy a 6-dimensional array of shorts into thedstNdArray- Parameters:
src- source arraydst- destination rank-6 array- Throws:
IllegalArgumentException- ifdstis not of rank-6 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(boolean[] src, BooleanNdArray dst)Copy an array of booleans into thedstNdArray- Parameters:
src- source arraydst- destination rank-1 array- Throws:
IllegalArgumentException- ifdstis not of rank-1 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(boolean[][] src, BooleanNdArray dst)Copy a 2-dimensional array of booleans into thedstNdArray- Parameters:
src- source arraydst- destination rank-2 array- Throws:
IllegalArgumentException- ifdstis not of rank-2 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(boolean[][][] src, BooleanNdArray dst)Copy a 3-dimensional array of booleans into thedstNdArray- Parameters:
src- source arraydst- destination rank-3 array- Throws:
IllegalArgumentException- ifdstis not of rank-3 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(boolean[][][][] src, BooleanNdArray dst)Copy a 4-dimensional array of booleans into thedstNdArray- Parameters:
src- source arraydst- destination rank-4 array- Throws:
IllegalArgumentException- ifdstis not of rank-4 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(boolean[][][][][] src, BooleanNdArray dst)Copy a 5-dimensional array of booleans into thedstNdArray- Parameters:
src- source arraydst- destination rank-5 array- Throws:
IllegalArgumentException- ifdstis not of rank-5 or has an incompatible shape with the source array
-
copyTo
public static void copyTo(boolean[][][][][][] src, BooleanNdArray dst)Copy a 6-dimensional array of booleans into thedstNdArray- Parameters:
src- source arraydst- destination rank-6 array- Throws:
IllegalArgumentException- ifdstis not of rank-6 or has an incompatible shape with the source array
-
copyTo
public static <T> void copyTo(T[] src, NdArray<T> dst)Copy an array of objects into thedstNdArray- Type Parameters:
T- data type- Parameters:
src- source arraydst- destination rank-1 array- Throws:
IllegalArgumentException- ifdstis not of rank-1 or has an incompatible shape with the source array
-
copyTo
public static <T> void copyTo(T[][] src, NdArray<T> dst)Copy a 2-dimensional array of objects into thedstNdArray- Type Parameters:
T- data type- Parameters:
src- source arraydst- destination rank-2 array- Throws:
IllegalArgumentException- ifdstis not of rank-2 or has an incompatible shape with the source array
-
copyTo
public static <T> void copyTo(T[][][] src, NdArray<T> dst)Copy a 3-dimensional array of objects into thedstNdArray- Type Parameters:
T- data type- Parameters:
src- source arraydst- destination rank-3 array- Throws:
IllegalArgumentException- ifdstis not of rank-3 or has an incompatible shape with the source array
-
copyTo
public static <T> void copyTo(T[][][][] src, NdArray<T> dst)Copy a 4-dimensional array of objects into thedstNdArray- Type Parameters:
T- data type- Parameters:
src- source arraydst- destination rank-4 array- Throws:
IllegalArgumentException- ifdstis not of rank-4 or has an incompatible shape with the source array
-
copyTo
public static <T> void copyTo(T[][][][][] src, NdArray<T> dst)Copy a 5-dimensional array of objects into thedstNdArray- Type Parameters:
T- data type- Parameters:
src- source arraydst- destination rank-5 array- Throws:
IllegalArgumentException- ifdstis not of rank-5 or has an incompatible shape with the source array
-
copyTo
public static <T> void copyTo(T[][][][][][] src, NdArray<T> dst)Copy a 6-dimensional array of objects into thedstNdArray- Type Parameters:
T- data type- Parameters:
src- source arraydst- destination rank-6 array- Throws:
IllegalArgumentException- ifdstis not of rank-6 or has an incompatible shape with the source array
-
copyFrom
public static void copyFrom(IntNdArray src, int[] dst)
Copy aNdArrayto an array of ints- Parameters:
src- source rank-1 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-1ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(IntNdArray src, int[][] dst)
Copy aNdArrayto a 2-dimensional array of ints- Parameters:
src- source rank-2 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-2ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(IntNdArray src, int[][][] dst)
Copy aNdArrayto a 3-dimensional array of ints- Parameters:
src- source rank-3 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-3ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(IntNdArray src, int[][][][] dst)
Copy aNdArrayto a 4-dimensional array of ints- Parameters:
src- source rank-4 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-4ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(IntNdArray src, int[][][][][] dst)
Copy aNdArrayto a 5-dimensional array of ints- Parameters:
src- source rank-5 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-5ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(IntNdArray src, int[][][][][][] dst)
Copy aNdArrayto a 6-dimensional array of ints- Parameters:
src- source rank-6 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-6ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(LongNdArray src, long[] dst)
Copy aNdArrayto an array of longs- Parameters:
src- source rank-1 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-1ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(LongNdArray src, long[][] dst)
Copy aNdArrayto a 2-dimensional array of longs- Parameters:
src- source rank-2 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-2ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(LongNdArray src, long[][][] dst)
Copy aNdArrayto a 3-dimensional array of longs- Parameters:
src- source rank-3 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-3ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(LongNdArray src, long[][][][] dst)
Copy aNdArrayto a 4-dimensional array of longs- Parameters:
src- source rank-4 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-4ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(LongNdArray src, long[][][][][] dst)
Copy aNdArrayto a 5-dimensional array of longs- Parameters:
src- source rank-5 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-5ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(LongNdArray src, long[][][][][][] dst)
Copy aNdArrayto a 6-dimensional array of longs- Parameters:
src- source rank-6 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-6ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(FloatNdArray src, float[] dst)
Copy aNdArrayto an array of floats- Parameters:
src- source rank-1 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-1ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(FloatNdArray src, float[][] dst)
Copy aNdArrayto a 2-dimensional array of floats- Parameters:
src- source rank-2 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-2ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(FloatNdArray src, float[][][] dst)
Copy aNdArrayto a 3-dimensional array of floats- Parameters:
src- source rank-3 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-3ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(FloatNdArray src, float[][][][] dst)
Copy aNdArrayto a 4-dimensional array of floats- Parameters:
src- source rank-4 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-4ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(FloatNdArray src, float[][][][][] dst)
Copy aNdArrayto a 5-dimensional array of floats- Parameters:
src- source rank-5 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-5ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(FloatNdArray src, float[][][][][][] dst)
Copy aNdArrayto a 6-dimensional array of floats- Parameters:
src- source rank-6 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-6ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(DoubleNdArray src, double[] dst)
Copy aNdArrayto an array of doubles- Parameters:
src- source rank-1 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-1ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(DoubleNdArray src, double[][] dst)
Copy aNdArrayto a 2-dimensional array of doubles- Parameters:
src- source rank-2 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-2ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(DoubleNdArray src, double[][][] dst)
Copy aNdArrayto a 3-dimensional array of doubles- Parameters:
src- source rank-3 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-3ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(DoubleNdArray src, double[][][][] dst)
Copy aNdArrayto a 4-dimensional array of doubles- Parameters:
src- source rank-4 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-4ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(DoubleNdArray src, double[][][][][] dst)
Copy aNdArrayto a 5-dimensional array of doubles- Parameters:
src- source rank-5 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-5ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(DoubleNdArray src, double[][][][][][] dst)
Copy aNdArrayto a 6-dimensional array of doubles- Parameters:
src- source rank-6 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-6ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(ByteNdArray src, byte[] dst)
Copy aNdArrayto an array of bytes- Parameters:
src- source rank-1 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-1ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(ByteNdArray src, byte[][] dst)
Copy aNdArrayto a 2-dimensional array of bytes- Parameters:
src- source rank-2 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-2ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(ByteNdArray src, byte[][][] dst)
Copy aNdArrayto a 3-dimensional array of bytes- Parameters:
src- source rank-3 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-3ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(ByteNdArray src, byte[][][][] dst)
Copy aNdArrayto a 4-dimensional array of bytes- Parameters:
src- source rank-4 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-4ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(ByteNdArray src, byte[][][][][] dst)
Copy aNdArrayto a 5-dimensional array of bytes- Parameters:
src- source rank-5 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-5ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(ByteNdArray src, byte[][][][][][] dst)
Copy aNdArrayto a 6-dimensional array of bytes- Parameters:
src- source rank-6 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-6ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(ShortNdArray src, short[] dst)
Copy aNdArrayto an array of shorts- Parameters:
src- source rank-1 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-1ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(ShortNdArray src, short[][] dst)
Copy aNdArrayto a 2-dimensional array of shorts- Parameters:
src- source rank-2 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-2ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(ShortNdArray src, short[][][] dst)
Copy aNdArrayto a 3-dimensional array of shorts- Parameters:
src- source rank-3 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-3ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(ShortNdArray src, short[][][][] dst)
Copy aNdArrayto a 4-dimensional array of shorts- Parameters:
src- source rank-4 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-4ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(ShortNdArray src, short[][][][][] dst)
Copy aNdArrayto a 5-dimensional array of shorts- Parameters:
src- source rank-5 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-5ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(ShortNdArray src, short[][][][][][] dst)
Copy aNdArrayto a 6-dimensional array of shorts- Parameters:
src- source rank-6 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-6ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(BooleanNdArray src, boolean[] dst)
Copy aNdArrayto an array of booleans.- Parameters:
src- source rank-1 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-1ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(BooleanNdArray src, boolean[][] dst)
Copy aNdArrayto a 2-dimensional array of booleans- Parameters:
src- source rank-2 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-2ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(BooleanNdArray src, boolean[][][] dst)
Copy aNdArrayto a 3-dimensional array of booleans- Parameters:
src- source rank-3 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-3ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(BooleanNdArray src, boolean[][][][] dst)
Copy aNdArrayto a 4-dimensional array of booleans- Parameters:
src- source rank-4 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-4ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(BooleanNdArray src, boolean[][][][][] dst)
Copy aNdArrayto a 5-dimensional array of booleans- Parameters:
src- source rank-5 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-5ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static void copyFrom(BooleanNdArray src, boolean[][][][][][] dst)
Copy aNdArrayto a 6-dimensional array of booleans- Parameters:
src- source rank-6 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-6ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static <T> void copyFrom(NdArray<T> src, T[] dst)
Copy aNdArrayto an array of objects- Type Parameters:
T- data type- Parameters:
src- source rank-1 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-1ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static <T> void copyFrom(NdArray<T> src, T[][] dst)
Copy aNdArrayto a 2-dimensional array of objects- Type Parameters:
T- data type- Parameters:
src- source rank-2 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-2ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static <T> void copyFrom(NdArray<T> src, T[][][] dst)
Copy aNdArrayto a 3-dimensional array of objects- Type Parameters:
T- data type- Parameters:
src- source rank-3 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-3ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static <T> void copyFrom(NdArray<T> src, T[][][][] dst)
Copy aNdArrayto a 4-dimensional array of objects- Type Parameters:
T- data type- Parameters:
src- source rank-4 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-4ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static <T> void copyFrom(NdArray<T> src, T[][][][][] dst)
Copy aNdArrayto a 5-dimensional array of objects- Type Parameters:
T- data type- Parameters:
src- source rank-5 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-5ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
copyFrom
public static <T> void copyFrom(NdArray<T> src, T[][][][][][] dst)
Copy aNdArrayto a 6-dimensional array of objects- Type Parameters:
T- data type- Parameters:
src- source rank-6 arraydst- destination array- Throws:
IllegalArgumentException- ifsrcis not of rank-6ArrayIndexOutOfBoundsException- if not all elements ofsrccan fit it the destination array
-
shapeOf
public static Shape shapeOf(int[] array)
Compute the shape of an int array.- Parameters:
array- 1D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(int[][] array)
Compute the shape of a 2-dimensional int array.- Parameters:
array- 2D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(int[][][] array)
Compute the shape of a 3-dimensional int array.- Parameters:
array- 3D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(int[][][][] array)
Compute the shape of a 4-dimensional int array.- Parameters:
array- 4D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(int[][][][][] array)
Compute the shape of a 5-dimensional int array.- Parameters:
array- 5D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(int[][][][][][] array)
Compute the shape of a 6-dimensional int array.- Parameters:
array- 6D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(long[] array)
Compute the shape of a long array.- Parameters:
array- 1D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(long[][] array)
Compute the shape of a 2-dimensional long array.- Parameters:
array- 2D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(long[][][] array)
Compute the shape of a 3-dimensional long array.- Parameters:
array- 3D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(long[][][][] array)
Compute the shape of a 4-dimensional long array.- Parameters:
array- 4D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(long[][][][][] array)
Compute the shape of a 5-dimensional long array.- Parameters:
array- 5D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(long[][][][][][] array)
Compute the shape of a 6-dimensional long array.- Parameters:
array- 6D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(float[] array)
Compute the shape of a float array.- Parameters:
array- 1D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(float[][] array)
Compute the shape of a 2-dimensional float array.- Parameters:
array- 2D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(float[][][] array)
Compute the shape of a 3-dimensional float array.- Parameters:
array- 3D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(float[][][][] array)
Compute the shape of a 4-dimensional float array.- Parameters:
array- 4D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(float[][][][][] array)
Compute the shape of a 5-dimensional float array.- Parameters:
array- 5D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(float[][][][][][] array)
Compute the shape of a 6-dimensional float array.- Parameters:
array- 6D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(double[] array)
Compute the shape of a double array.- Parameters:
array- 1D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(double[][] array)
Compute the shape of a 2-dimensional double array.- Parameters:
array- 2D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(double[][][] array)
Compute the shape of a 3-dimensional double array.- Parameters:
array- 3D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(double[][][][] array)
Compute the shape of a 4-dimensional double array.- Parameters:
array- 4D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(double[][][][][] array)
Compute the shape of a 5-dimensional double array.- Parameters:
array- 5D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(double[][][][][][] array)
Compute the shape of a 6-dimensional double array.- Parameters:
array- 6D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(byte[] array)
Compute the shape of a byte array.- Parameters:
array- 1D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(byte[][] array)
Compute the shape of a 2-dimensional byte array.- Parameters:
array- 2D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(byte[][][] array)
Compute the shape of a 3-dimensional byte array.- Parameters:
array- 3D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(byte[][][][] array)
Compute the shape of a 4-dimensional byte array.- Parameters:
array- 4D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(byte[][][][][] array)
Compute the shape of a 5-dimensional byte array.- Parameters:
array- 5D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(byte[][][][][][] array)
Compute the shape of a 6-dimensional byte array.- Parameters:
array- 6D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(short[] array)
Compute the shape of a short array.- Parameters:
array- 1D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(short[][] array)
Compute the shape of a 2-dimensional short array.- Parameters:
array- 2D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(short[][][] array)
Compute the shape of a 3-dimensional short array.- Parameters:
array- 3D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(short[][][][] array)
Compute the shape of a 4-dimensional short array.- Parameters:
array- 4D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(short[][][][][] array)
Compute the shape of a 5-dimensional short array.- Parameters:
array- 5D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(short[][][][][][] array)
Compute the shape of a 6-dimensional short array.- Parameters:
array- 6D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(boolean[] array)
Compute the shape of a boolean array.- Parameters:
array- 1D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(boolean[][] array)
Compute the shape of a 2-dimensional boolean array.- Parameters:
array- 2D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(boolean[][][] array)
Compute the shape of a 3-dimensional boolean array.- Parameters:
array- 3D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(boolean[][][][] array)
Compute the shape of a 4-dimensional boolean array.- Parameters:
array- 4D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(boolean[][][][][] array)
Compute the shape of a 5-dimensional boolean array.- Parameters:
array- 5D array- Returns:
- shape of the array
-
shapeOf
public static Shape shapeOf(boolean[][][][][][] array)
Compute the shape of a 6-dimensional boolean array.- Parameters:
array- 6D array- Returns:
- shape of the array
-
shapeOf
public static <T> Shape shapeOf(T[] array)
Compute the shape of an object array.- Type Parameters:
T- data type- Parameters:
array- 1D array- Returns:
- shape of the array
-
shapeOf
public static <T> Shape shapeOf(T[][] array)
Compute the shape of a 2-dimensional object array.- Type Parameters:
T- data type- Parameters:
array- 2D array- Returns:
- shape of the array
-
shapeOf
public static <T> Shape shapeOf(T[][][] array)
Compute the shape of a 3-dimensional object array.- Type Parameters:
T- data type- Parameters:
array- 3D array- Returns:
- shape of the array
-
shapeOf
public static <T> Shape shapeOf(T[][][][] array)
Compute the shape of a 4-dimensional object array.- Type Parameters:
T- data type- Parameters:
array- 4D array- Returns:
- shape of the array
-
shapeOf
public static <T> Shape shapeOf(T[][][][][] array)
Compute the shape of a 5-dimensional object array.- Type Parameters:
T- data type- Parameters:
array- 5D array- Returns:
- shape of the array
-
shapeOf
public static <T> Shape shapeOf(T[][][][][][] array)
Compute the shape of a 6-dimensional object array.- Type Parameters:
T- data type- Parameters:
array- 6D array- Returns:
- shape of the array
-
-