Package com.yahoo.tensor.impl
Class TensorAddressAny
java.lang.Object
com.yahoo.tensor.TensorAddress
com.yahoo.tensor.impl.TensorAddressAny
- All Implemented Interfaces:
Comparable<TensorAddress>
Parent of tensor address family centered around each dimension as int.
A positive number represents a numeric index usable as a direct addressing.
- 1 is representing an invalid/null address
Other negative numbers are an enumeration maintained in
Label- Author:
- baldersheim
-
Nested Class Summary
Nested classes/interfaces inherited from class com.yahoo.tensor.TensorAddress
TensorAddress.Builder, TensorAddress.PartialBuilder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlabel(int i) Returns the i'th label in thislongnumericLabel(int i) Returns the i'th label in this as a long.static TensorAddressof()static TensorAddressof(int label) static TensorAddressof(int... labels) static TensorAddressof(int label0, int label1) static TensorAddressof(int label0, int label1, int label2) static TensorAddressof(int label0, int label1, int label2, int label3) static TensorAddressof(long label) static TensorAddressof(long... labels) static TensorAddressof(long label0, long label1) static TensorAddressof(long label0, long label1, long label2) static TensorAddressof(long label0, long label1, long label2, long label3) static TensorAddressstatic TensorAddressstatic TensorAddressstatic TensorAddressstatic TensorAddressstatic TensorAddressstatic TensorAddressMethods inherited from class com.yahoo.tensor.TensorAddress
compareTo, fullAddressOf, isEmpty, labelToString, mappedPartialAddress, objectLabel, ofLabels, partialCopy, size, toString, toString, withLabel
-
Constructor Details
-
TensorAddressAny
public TensorAddressAny()
-
-
Method Details
-
label
Description copied from class:TensorAddressReturns the i'th label in this- Specified by:
labelin classTensorAddress
-
numericLabel
public long numericLabel(int i) Description copied from class:TensorAddressReturns the i'th label in this as a long. Prefer this if you know that this is a numeric address, but not otherwise.- Specified by:
numericLabelin classTensorAddress
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
of
-
ofUnsafe
-