Class NumpyArrayFactory


  • public class NumpyArrayFactory
    extends Object
    A factory class that facilitate the creation of NumpyArrays.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int SIZE_OF_DOUBLE
      Number of bytes used to allocate a double.
      static int SIZE_OF_FLOAT
      Number of bytes used to allocate a float.
      static int SIZE_OF_INT_16
      Number of bytes used to allocate a short.
      static int SIZE_OF_INT_32
      Number of bytes used to allocate an int.
      static int SIZE_OF_INT_64
      Number of bytes used to allocate a long.
      static int SIZE_OF_INT_8
      Number of bytes used to allocate a byte.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static NumpyArray<Double> arrayOfDoubleWithShape​(int[] shape)
      Create a numpy array of double with specified shape.
      static NumpyArray<Float> arrayOfFloatWithShape​(int[] shape)
      Create a numpy array of float with specified shape.
      static NumpyArray<Short> arrayOfInt16WithShape​(int[] shape)
      Create a numpy array of short with specified shape.
      static NumpyArray<Integer> arrayOfInt32WithShape​(int[] shape)
      Create a numpy array of int with specified shape.
      static NumpyArray<Long> arrayOfInt64WithShape​(int[] shape)
      Create a numpy array of long with specified shape.
      static NumpyArray<Byte> arrayOfInt8WithShape​(int[] shape)
      Create a numpy array of byte with specified shape.
      static NumpyArray createArrayOfShapeAndTypeInfo​(boolean isFloatingPoint, int size, int[] shape)
      Creates a numpy array with a specified shape that can store values with specified characteristics.
      static NumpyArray createArrayOfShapeAndTypeInfo​(NumpyArray other)
      Creates a numpy array of the same dimension and data type of the provided one.
      static NumpyArray<Byte> from​(byte[] array)
      Create a numpy array wrapper over a 1 dimension byte array.
      static NumpyArray<Byte> from​(byte[][] array)
      Create a numpy array wrapper over a 2 dimension byte array.
      static NumpyArray<Byte> from​(byte[][][] array)
      Create a numpy array wrapper over a 3 dimension byte array.
      static NumpyArray<Byte> from​(byte[][][][] array)
      Create a numpy array wrapper over a 4 dimension byte array.
      static NumpyArray<Byte> from​(byte[][][][][] array)
      Create a numpy array wrapper over a 5 dimension byte array.
      static NumpyArray<Byte> from​(byte[][][][][][] array)
      Create a numpy array wrapper over a 6 dimension byte array.
      static NumpyArray<Byte> from​(byte[][][][][][][] array)
      Create a numpy array wrapper over a 7 dimension byte array.
      static NumpyArray<Byte> from​(byte[][][][][][][][] array)
      Create a numpy array wrapper over a 8 dimension byte array.
      static NumpyArray<Byte> from​(byte[][][][][][][][][] array)
      Create a numpy array wrapper over a 9 dimension byte array.
      static NumpyArray<Byte> from​(byte[][][][][][][][][][] array)
      Create a numpy array wrapper over a 10 dimension byte array.
      static NumpyArray<Double> from​(double[] array)
      Create a numpy array wrapper over a 1 dimension double array.
      static NumpyArray<Double> from​(double[][] array)
      Create a numpy array wrapper over a 2 dimension double array.
      static NumpyArray<Double> from​(double[][][] array)
      Create a numpy array wrapper over a 3 dimension double array.
      static NumpyArray<Double> from​(double[][][][] array)
      Create a numpy array wrapper over a 4 dimension double array.
      static NumpyArray<Double> from​(double[][][][][] array)
      Create a numpy array wrapper over a 5 dimension double array.
      static NumpyArray<Double> from​(double[][][][][][] array)
      Create a numpy array wrapper over a 6 dimension double array.
      static NumpyArray<Double> from​(double[][][][][][][] array)
      Create a numpy array wrapper over a 7 dimension double array.
      static NumpyArray<Double> from​(double[][][][][][][][] array)
      Create a numpy array wrapper over a 8 dimension double array.
      static NumpyArray<Double> from​(double[][][][][][][][][] array)
      Create a numpy array wrapper over a 9 dimension double array.
      static NumpyArray<Double> from​(double[][][][][][][][][][] array)
      Create a numpy array wrapper over a 10 dimension double array.
      static NumpyArray<Float> from​(float[] array)
      Create a numpy array wrapper over a 1 dimension float array.
      static NumpyArray<Float> from​(float[][] array)
      Create a numpy array wrapper over a 2 dimension float array.
      static NumpyArray<Float> from​(float[][][] array)
      Create a numpy array wrapper over a 3 dimension float array.
      static NumpyArray<Float> from​(float[][][][] array)
      Create a numpy array wrapper over a 4 dimension float array.
      static NumpyArray<Float> from​(float[][][][][] array)
      Create a numpy array wrapper over a 5 dimension float array.
      static NumpyArray<Float> from​(float[][][][][][] array)
      Create a numpy array wrapper over a 6 dimension float array.
      static NumpyArray<Float> from​(float[][][][][][][] array)
      Create a numpy array wrapper over a 7 dimension float array.
      static NumpyArray<Float> from​(float[][][][][][][][] array)
      Create a numpy array wrapper over a 8 dimension float array.
      static NumpyArray<Float> from​(float[][][][][][][][][] array)
      Create a numpy array wrapper over a 9 dimension float array.
      static NumpyArray<Float> from​(float[][][][][][][][][][] array)
      Create a numpy array wrapper over a 10 dimension float array.
      static NumpyArray<Integer> from​(int[] array)
      Create a numpy array wrapper over a 1 dimension int array.
      static NumpyArray<Integer> from​(int[][] array)
      Create a numpy array wrapper over a 2 dimension int array.
      static NumpyArray<Integer> from​(int[][][] array)
      Create a numpy array wrapper over a 3 dimension int array.
      static NumpyArray<Integer> from​(int[][][][] array)
      Create a numpy array wrapper over a 4 dimension int array.
      static NumpyArray<Integer> from​(int[][][][][] array)
      Create a numpy array wrapper over a 5 dimension int array.
      static NumpyArray<Integer> from​(int[][][][][][] array)
      Create a numpy array wrapper over a 6 dimension int array.
      static NumpyArray<Integer> from​(int[][][][][][][] array)
      Create a numpy array wrapper over a 7 dimension int array.
      static NumpyArray<Integer> from​(int[][][][][][][][] array)
      Create a numpy array wrapper over a 8 dimension int array.
      static NumpyArray<Integer> from​(int[][][][][][][][][] array)
      Create a numpy array wrapper over a 9 dimension int array.
      static NumpyArray<Integer> from​(int[][][][][][][][][][] array)
      Create a numpy array wrapper over a 10 dimension int array.
      static NumpyArray<Long> from​(long[] array)
      Create a numpy array wrapper over a 1 dimension long array.
      static NumpyArray<Long> from​(long[][] array)
      Create a numpy array wrapper over a 2 dimension long array.
      static NumpyArray<Long> from​(long[][][] array)
      Create a numpy array wrapper over a 3 dimension long array.
      static NumpyArray<Long> from​(long[][][][] array)
      Create a numpy array wrapper over a 4 dimension long array.
      static NumpyArray<Long> from​(long[][][][][] array)
      Create a numpy array wrapper over a 5 dimension long array.
      static NumpyArray<Long> from​(long[][][][][][] array)
      Create a numpy array wrapper over a 6 dimension long array.
      static NumpyArray<Long> from​(long[][][][][][][] array)
      Create a numpy array wrapper over a 7 dimension long array.
      static NumpyArray<Long> from​(long[][][][][][][][] array)
      Create a numpy array wrapper over a 8 dimension long array.
      static NumpyArray<Long> from​(long[][][][][][][][][] array)
      Create a numpy array wrapper over a 9 dimension long array.
      static NumpyArray<Long> from​(long[][][][][][][][][][] array)
      Create a numpy array wrapper over a 10 dimension long array.
      static NumpyArray<Short> from​(short[] array)
      Create a numpy array wrapper over a 1 dimension short array.
      static NumpyArray<Short> from​(short[][] array)
      Create a numpy array wrapper over a 2 dimension short array.
      static NumpyArray<Short> from​(short[][][] array)
      Create a numpy array wrapper over a 3 dimension short array.
      static NumpyArray<Short> from​(short[][][][] array)
      Create a numpy array wrapper over a 4 dimension short array.
      static NumpyArray<Short> from​(short[][][][][] array)
      Create a numpy array wrapper over a 5 dimension short array.
      static NumpyArray<Short> from​(short[][][][][][] array)
      Create a numpy array wrapper over a 6 dimension short array.
      static NumpyArray<Short> from​(short[][][][][][][] array)
      Create a numpy array wrapper over a 7 dimension short array.
      static NumpyArray<Short> from​(short[][][][][][][][] array)
      Create a numpy array wrapper over a 8 dimension short array.
      static NumpyArray<Short> from​(short[][][][][][][][][] array)
      Create a numpy array wrapper over a 9 dimension short array.
      static NumpyArray<Short> from​(short[][][][][][][][][][] array)
      Create a numpy array wrapper over a 10 dimension short array.
      static byte toByte​(Object o)
      Converts a value into a byte.
      static double toDouble​(Object value)
      Converts a value into a double.
      static float toFloat​(Object value)
      Converts a value into a float.
      static int toInteger​(Object o)
      Converts a value into an int.
      static long toLong​(Object o)
      Converts a value into a long.
      static short toShort​(Object o)
      Converts a value into a short.
    • Field Detail

      • SIZE_OF_INT_8

        public static final int SIZE_OF_INT_8
        Number of bytes used to allocate a byte.
        See Also:
        Constant Field Values
      • SIZE_OF_INT_16

        public static final int SIZE_OF_INT_16
        Number of bytes used to allocate a short.
        See Also:
        Constant Field Values
      • SIZE_OF_INT_32

        public static final int SIZE_OF_INT_32
        Number of bytes used to allocate an int.
        See Also:
        Constant Field Values
      • SIZE_OF_INT_64

        public static final int SIZE_OF_INT_64
        Number of bytes used to allocate a long.
        See Also:
        Constant Field Values
      • SIZE_OF_FLOAT

        public static final int SIZE_OF_FLOAT
        Number of bytes used to allocate a float.
        See Also:
        Constant Field Values
      • SIZE_OF_DOUBLE

        public static final int SIZE_OF_DOUBLE
        Number of bytes used to allocate a double.
        See Also:
        Constant Field Values
    • Constructor Detail

      • NumpyArrayFactory

        public NumpyArrayFactory()
    • Method Detail

      • createArrayOfShapeAndTypeInfo

        public static NumpyArray createArrayOfShapeAndTypeInfo​(NumpyArray other)
        Creates a numpy array of the same dimension and data type of the provided one.
        Parameters:
        other - The other array to create a similar array to.
        Returns:
        An empty array with the same shape and data type.
      • createArrayOfShapeAndTypeInfo

        public static NumpyArray createArrayOfShapeAndTypeInfo​(boolean isFloatingPoint,
                                                               int size,
                                                               int[] shape)
        Creates a numpy array with a specified shape that can store values with specified characteristics.
        Parameters:
        isFloatingPoint - Indicates if the elements are floating point.
        size - Indicates the number of bytes each element should allocate in memory.
        shape - Shape of the desired new array.
        Returns:
        An array of the specified shape and data characteristics.
      • toByte

        public static byte toByte​(Object o)
        Converts a value into a byte.
        Parameters:
        o - The value to be converted.
        Returns:
        A byte value.
      • toDouble

        public static double toDouble​(Object value)
        Converts a value into a double.
        Parameters:
        value - The value to be converted.
        Returns:
        A double value.
      • toFloat

        public static float toFloat​(Object value)
        Converts a value into a float.
        Parameters:
        value - The value to be converted.
        Returns:
        A float value.
      • toShort

        public static short toShort​(Object o)
        Converts a value into a short.
        Parameters:
        o - The value to be converted.
        Returns:
        A short value.
      • toInteger

        public static int toInteger​(Object o)
        Converts a value into an int.
        Parameters:
        o - The value to be converted.
        Returns:
        A int value.
      • toLong

        public static long toLong​(Object o)
        Converts a value into a long.
        Parameters:
        o - The value to be converted.
        Returns:
        A long value.
      • from

        public static NumpyArray<Byte> from​(byte[] array)
        Create a numpy array wrapper over a 1 dimension byte array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Byte> from​(byte[][] array)
        Create a numpy array wrapper over a 2 dimension byte array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Byte> from​(byte[][][] array)
        Create a numpy array wrapper over a 3 dimension byte array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Byte> from​(byte[][][][] array)
        Create a numpy array wrapper over a 4 dimension byte array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Byte> from​(byte[][][][][] array)
        Create a numpy array wrapper over a 5 dimension byte array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Byte> from​(byte[][][][][][] array)
        Create a numpy array wrapper over a 6 dimension byte array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Byte> from​(byte[][][][][][][] array)
        Create a numpy array wrapper over a 7 dimension byte array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Byte> from​(byte[][][][][][][][] array)
        Create a numpy array wrapper over a 8 dimension byte array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Byte> from​(byte[][][][][][][][][] array)
        Create a numpy array wrapper over a 9 dimension byte array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Byte> from​(byte[][][][][][][][][][] array)
        Create a numpy array wrapper over a 10 dimension byte array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Short> from​(short[] array)
        Create a numpy array wrapper over a 1 dimension short array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Short> from​(short[][] array)
        Create a numpy array wrapper over a 2 dimension short array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Short> from​(short[][][] array)
        Create a numpy array wrapper over a 3 dimension short array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Short> from​(short[][][][] array)
        Create a numpy array wrapper over a 4 dimension short array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Short> from​(short[][][][][] array)
        Create a numpy array wrapper over a 5 dimension short array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Short> from​(short[][][][][][] array)
        Create a numpy array wrapper over a 6 dimension short array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Short> from​(short[][][][][][][] array)
        Create a numpy array wrapper over a 7 dimension short array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Short> from​(short[][][][][][][][] array)
        Create a numpy array wrapper over a 8 dimension short array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Short> from​(short[][][][][][][][][] array)
        Create a numpy array wrapper over a 9 dimension short array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Short> from​(short[][][][][][][][][][] array)
        Create a numpy array wrapper over a 10 dimension short array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Integer> from​(int[] array)
        Create a numpy array wrapper over a 1 dimension int array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Integer> from​(int[][] array)
        Create a numpy array wrapper over a 2 dimension int array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Integer> from​(int[][][] array)
        Create a numpy array wrapper over a 3 dimension int array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Integer> from​(int[][][][] array)
        Create a numpy array wrapper over a 4 dimension int array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Integer> from​(int[][][][][] array)
        Create a numpy array wrapper over a 5 dimension int array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Integer> from​(int[][][][][][] array)
        Create a numpy array wrapper over a 6 dimension int array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Integer> from​(int[][][][][][][] array)
        Create a numpy array wrapper over a 7 dimension int array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Integer> from​(int[][][][][][][][] array)
        Create a numpy array wrapper over a 8 dimension int array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Integer> from​(int[][][][][][][][][] array)
        Create a numpy array wrapper over a 9 dimension int array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Integer> from​(int[][][][][][][][][][] array)
        Create a numpy array wrapper over a 10 dimension int array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Long> from​(long[] array)
        Create a numpy array wrapper over a 1 dimension long array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Long> from​(long[][] array)
        Create a numpy array wrapper over a 2 dimension long array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Long> from​(long[][][] array)
        Create a numpy array wrapper over a 3 dimension long array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Long> from​(long[][][][] array)
        Create a numpy array wrapper over a 4 dimension long array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Long> from​(long[][][][][] array)
        Create a numpy array wrapper over a 5 dimension long array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Long> from​(long[][][][][][] array)
        Create a numpy array wrapper over a 6 dimension long array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Long> from​(long[][][][][][][] array)
        Create a numpy array wrapper over a 7 dimension long array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Long> from​(long[][][][][][][][] array)
        Create a numpy array wrapper over a 8 dimension long array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Long> from​(long[][][][][][][][][] array)
        Create a numpy array wrapper over a 9 dimension long array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Long> from​(long[][][][][][][][][][] array)
        Create a numpy array wrapper over a 10 dimension long array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Float> from​(float[] array)
        Create a numpy array wrapper over a 1 dimension float array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Float> from​(float[][] array)
        Create a numpy array wrapper over a 2 dimension float array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Float> from​(float[][][] array)
        Create a numpy array wrapper over a 3 dimension float array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Float> from​(float[][][][] array)
        Create a numpy array wrapper over a 4 dimension float array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Float> from​(float[][][][][] array)
        Create a numpy array wrapper over a 5 dimension float array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Float> from​(float[][][][][][] array)
        Create a numpy array wrapper over a 6 dimension float array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Float> from​(float[][][][][][][] array)
        Create a numpy array wrapper over a 7 dimension float array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Float> from​(float[][][][][][][][] array)
        Create a numpy array wrapper over a 8 dimension float array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Float> from​(float[][][][][][][][][] array)
        Create a numpy array wrapper over a 9 dimension float array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Float> from​(float[][][][][][][][][][] array)
        Create a numpy array wrapper over a 10 dimension float array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Double> from​(double[] array)
        Create a numpy array wrapper over a 1 dimension double array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Double> from​(double[][] array)
        Create a numpy array wrapper over a 2 dimension double array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Double> from​(double[][][] array)
        Create a numpy array wrapper over a 3 dimension double array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Double> from​(double[][][][] array)
        Create a numpy array wrapper over a 4 dimension double array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Double> from​(double[][][][][] array)
        Create a numpy array wrapper over a 5 dimension double array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Double> from​(double[][][][][][] array)
        Create a numpy array wrapper over a 6 dimension double array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Double> from​(double[][][][][][][] array)
        Create a numpy array wrapper over a 7 dimension double array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Double> from​(double[][][][][][][][] array)
        Create a numpy array wrapper over a 8 dimension double array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Double> from​(double[][][][][][][][][] array)
        Create a numpy array wrapper over a 9 dimension double array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • from

        public static NumpyArray<Double> from​(double[][][][][][][][][][] array)
        Create a numpy array wrapper over a 10 dimension double array.
        Parameters:
        array - The array to be wrapped.
        Returns:
        The wrapped numpy array.
      • arrayOfInt8WithShape

        public static NumpyArray<Byte> arrayOfInt8WithShape​(int[] shape)
        Create a numpy array of byte with specified shape.
        Parameters:
        shape - The shape of the new array.
        Returns:
        The new numpy array with desired shape.
      • arrayOfInt16WithShape

        public static NumpyArray<Short> arrayOfInt16WithShape​(int[] shape)
        Create a numpy array of short with specified shape.
        Parameters:
        shape - The shape of the new array.
        Returns:
        The new numpy array with desired shape.
      • arrayOfInt32WithShape

        public static NumpyArray<Integer> arrayOfInt32WithShape​(int[] shape)
        Create a numpy array of int with specified shape.
        Parameters:
        shape - The shape of the new array.
        Returns:
        The new numpy array with desired shape.
      • arrayOfInt64WithShape

        public static NumpyArray<Long> arrayOfInt64WithShape​(int[] shape)
        Create a numpy array of long with specified shape.
        Parameters:
        shape - The shape of the new array.
        Returns:
        The new numpy array with desired shape.
      • arrayOfFloatWithShape

        public static NumpyArray<Float> arrayOfFloatWithShape​(int[] shape)
        Create a numpy array of float with specified shape.
        Parameters:
        shape - The shape of the new array.
        Returns:
        The new numpy array with desired shape.
      • arrayOfDoubleWithShape

        public static NumpyArray<Double> arrayOfDoubleWithShape​(int[] shape)
        Create a numpy array of double with specified shape.
        Parameters:
        shape - The shape of the new array.
        Returns:
        The new numpy array with desired shape.