Package com.yahoo.tensor
Class PartialAddress
java.lang.Object
com.yahoo.tensor.PartialAddress
An address to a subset of a tensors' cells, specifying a label for some, but not necessarily all, of the tensors
dimensions.
- Author:
- bratseth
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionasAddress
(TensorType type) Returns this as an address in the given tensor typedimension
(int i) label
(int i) Returns the label at position iReturns the label of this dimension, or null if no label is specified for itlong
numericLabel
(String dimensionName) Returns the numeric label of this dimension, or -1 if no label is specified for itint
size()
toString()
-
Method Details
-
dimension
-
numericLabel
Returns the numeric label of this dimension, or -1 if no label is specified for it -
label
Returns the label of this dimension, or null if no label is specified for it -
label
Returns the label at position i- Throws:
IllegalArgumentException
- if i is out of bounds
-
size
public int size() -
asAddress
Returns this as an address in the given tensor type -
toString
-