Class DimensionSizes


  • public final class DimensionSizes
    extends Object
    The sizes of a set of dimensions.
    Author:
    bratseth
    • Method Detail

      • size

        public long size​(int dimensionIndex)
        Returns the length of this in the nth dimension
        Throws:
        IllegalArgumentException - if the index is larger than the number of dimensions in this tensor minus one
      • dimensions

        public int dimensions()
        Returns the number of dimensions this provides the size of
      • totalSize

        public long totalSize()
        Returns the product of the sizes of this
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object