Class NpNdarray

    • Field Detail

      • shape

        public final int[] shape
        ndarray.shape
      • strides

        public final int[] strides
        The unit of Numpy ndarray.strides is bytes, but the unit of this field is element.
    • Constructor Detail

      • NpNdarray

        public NpNdarray​(int[] shape,
                         int[] strides)
    • Method Detail

      • ndim

        public int ndim()
        ndarray.ndim
        Returns:
        The length of shape.
      • itemsize

        public abstract int itemsize()
        ndarray.itemsize
        Returns:
        The bytes of element.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object