Class PartialAddress

java.lang.Object
com.yahoo.tensor.PartialAddress

public class PartialAddress extends Object
An address to a subset of a tensors' cells, specifying a label for some but not necessarily all of the tensors dimensions.
Author:
bratseth
  • Method Details

    • dimension

      public String dimension(int i)
    • numericLabel

      public long numericLabel(String dimensionName)
      Returns the numeric label of this dimension, or -1 if no label is specified for it
    • label

      public String label(String dimensionName)
      Returns the label of this dimension, or null if no label is specified for it
    • label

      public String label(int i)
      Returns the label at position i
      Throws:
      IllegalArgumentException - if i is out of bounds
    • size

      public int size()
    • asAddress

      public TensorAddress asAddress(TensorType type)
      Returns this as an address in the given tensor type
    • toString

      public String toString()
      Overrides:
      toString in class Object