Interface Shaped

    • Method Detail

      • shape

        Shape shape()
        Returns:
        the shape of this container
      • rank

        default int rank()
        Returns:
        the rank of this container
      • size

        default long size()
        Computes and returns the total size of this container, in number of values.

        For example, given a 3x3x2 matrix, the return value will be 18.

        Returns:
        number of values in this element