Uses of Class
com.yahoo.tensor.TensorAddress
Packages that use TensorAddress
Package
Description
Tensor data types
Tensor function evaluation
-
Uses of TensorAddress in com.yahoo.tensor
Fields in com.yahoo.tensor declared as TensorAddressMethods in com.yahoo.tensor that return TensorAddressModifier and TypeMethodDescriptionIndexedTensor.SubspaceIterator.address()
Returns the address of the cell this currently points to (which may be an invalid position)PartialAddress.asAddress
(TensorType type) Returns this as an address in the given tensor typeTensorAddress.Builder.build()
TensorAddress.fullAddressOf
(List<TensorType.Dimension> dimensions, int[] densePart) Creates a complete address by taking the mapped dimmensions from this and the indexed from the indexedPartTensor.Cell.getKey()
TensorAddress.mappedPartialAddress
(TensorType mappedType, List<TensorType.Dimension> dimensions) Returns an address containing the mapped dimensions of this.static TensorAddress
TensorAddress.of
(int... labels) static TensorAddress
TensorAddress.of
(long... labels) static TensorAddress
static TensorAddress
TensorAddress.partialCopy
(int[] indexMap) Returns an address with only some of the dimension.IndexedTensor.Indexes.toAddress()
Returns the address of the current position of these indexesabstract TensorAddress
TensorAddress.withLabel
(int labelIndex, long label) Methods in com.yahoo.tensor that return types with arguments of type TensorAddressModifier and TypeMethodDescriptionIndexedTensor.cells()
MappedTensor.cells()
MixedTensor.cells()
Tensor.cells()
Returns an immutable map of the cells of this in no particular order.Methods in com.yahoo.tensor with parameters of type TensorAddressModifier and TypeMethodDescriptionMixedTensor.BoundBuilder.block
(TensorAddress sparsePart, double[] values) MappedTensor.Builder.cell
(TensorAddress address, double value) MappedTensor.Builder.cell
(TensorAddress address, float value) MixedTensor.BoundBuilder.cell
(TensorAddress address, double value) MixedTensor.BoundBuilder.cell
(TensorAddress address, float value) Tensor.Builder.cell
(TensorAddress address, double value) Add a cellTensor.Builder.cell
(TensorAddress address, float value) int
TensorAddress.compareTo
(TensorAddress other) MixedTensor.BoundBuilder.denseSubspaceBuilder
(TensorAddress sparseAddress) double
IndexedTensor.get
(TensorAddress address) Returns the value at this address, or 0.0 if there is no value at this addressdouble
MappedTensor.get
(TensorAddress address) double
MixedTensor.get
(TensorAddress address) Returns the value at the given addressdouble
Tensor.get
(TensorAddress address) Returns the value of a cell, or 0.0 if this cell does not existIndexedTensor.getAsDouble
(TensorAddress address) MappedTensor.getAsDouble
(TensorAddress address) MixedTensor.getAsDouble
(TensorAddress address) Tensor.getAsDouble
(TensorAddress address) Returns the value at this address, or null of it does not exist.boolean
IndexedTensor.has
(TensorAddress address) boolean
MappedTensor.has
(TensorAddress address) boolean
MixedTensor.has
(TensorAddress address) boolean
Tensor.has
(TensorAddress address) Returns true if this cell existsMethod parameters in com.yahoo.tensor with type arguments of type TensorAddressModifier and TypeMethodDescriptiondefault Tensor
Tensor.modify
(DoubleBinaryOperator op, Map<TensorAddress, Double> cells) Returns a new tensor where existing cells in this tensor have been modified according to the given operation and cells in the given map.IndexedTensor.remove
(Set<TensorAddress> addresses) MappedTensor.remove
(Set<TensorAddress> addresses) MixedTensor.remove
(Set<TensorAddress> addresses) Tensor.remove
(Set<TensorAddress> addresses) Returns a new tensor where existing cells in this tensor have been removed according to the given set of addresses. -
Uses of TensorAddress in com.yahoo.tensor.functions
Method parameters in com.yahoo.tensor.functions with type arguments of type TensorAddressModifier and TypeMethodDescriptionstatic <NAMETYPE extends Name>
DynamicTensor<NAMETYPE>DynamicTensor.from
(TensorType type, Map<TensorAddress, ScalarFunction<NAMETYPE>> cells) Creates a dynamic tensor function. -
Uses of TensorAddress in com.yahoo.tensor.impl
Subclasses of TensorAddress in com.yahoo.tensor.implModifier and TypeClassDescriptionclass
Parent of tensor address family centered around each dimension as int.Methods in com.yahoo.tensor.impl that return TensorAddressModifier and TypeMethodDescriptionstatic TensorAddress
TensorAddressAny.of()
static TensorAddress
TensorAddressAny.of
(int label) static TensorAddress
TensorAddressAny.of
(int... labels) static TensorAddress
TensorAddressAny.of
(int label0, int label1) static TensorAddress
TensorAddressAny.of
(int label0, int label1, int label2) static TensorAddress
TensorAddressAny.of
(int label0, int label1, int label2, int label3) static TensorAddress
TensorAddressAny.of
(long... labels) static TensorAddress
TensorAddressAny.of
(long label0, long label1, long label2) static TensorAddress
TensorAddressAny.of
(long label0, long label1, long label2, long label3) static TensorAddress
static TensorAddress
static TensorAddress
static TensorAddress
static TensorAddress
static TensorAddress
TensorAddressAny.ofUnsafe
(long... labels)