Class Dim6Int16NumpyWrapper

    • Constructor Detail

      • Dim6Int16NumpyWrapper

        public Dim6Int16NumpyWrapper​(short[][][][][][] array)
        Instantiate a new wrapper for 6 array.
        Parameters:
        array - The underlying native array object.
    • Method Detail

      • getShape

        public int[] getShape()
        Description copied from interface: INumpyArrayWrapper
        Gets the shape of the underlying Numpy array.
        Specified by:
        getShape in interface INumpyArrayWrapper
        Returns:
        The shape of the array as an int[].
      • get

        public Object get​(int... indices)
        Description copied from interface: INumpyArrayWrapper
        Gets the value of a single element in the numpy array denoted by its indices.
        Specified by:
        get in interface INumpyArrayWrapper
        Parameters:
        indices - The index of the element to be retrieved.
        Returns:
        An object-wrapped instance of the element in the Numpy array.
      • set

        public void set​(Object value,
                        int... indices)
        Description copied from interface: INumpyArrayWrapper
        Sets the value of a single element in the numpy array denoted by its indices.
        Specified by:
        set in interface INumpyArrayWrapper
        Parameters:
        value - The new value to be assigned to the numpy element.
        indices - The index of the element to be set.
      • getArray

        public short[][][][][][] getArray()
        Gets the underlying native array object.
        Returns:
        The underlying native array object.
      • isFloatingPoint

        public boolean isFloatingPoint()
        Description copied from interface: INumpyArrayWrapper
        Returns a boolean indicating that the underlying array type is a floating point one or not.
        Specified by:
        isFloatingPoint in interface INumpyArrayWrapper
        Returns:
        A boolean value indicating floating point of the elements.
      • numberOfBits

        public int numberOfBits()
        Description copied from interface: INumpyArrayWrapper
        The space allocated by each element of the numpy array in terms of bits.
        Specified by:
        numberOfBits in interface INumpyArrayWrapper
        Returns:
        Number of bit needed for each element.
      • wrapInnerSubsetArray

        public NumpyArray wrapInnerSubsetArray​(int... indices)
        Description copied from interface: INumpyArrayWrapper
        Wraps a subset of the numpy array. This methods works only when slicing the most inner dimensions of the array. For example, if the shape is [2, 6, 4, 8], wrapInnerSubsetArray(1, 3) is equivalent to numpy array[1, 3, :, :].
        Specified by:
        wrapInnerSubsetArray in interface INumpyArrayWrapper
        Parameters:
        indices - The indices of the first dimensions to keep.
        Returns:
        A new INumpyArrayWrapper wrapping the inner dimensions. This array has the same reference.