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[] indexedPart) Creates a complete address by taking the mapped dimensions of this and adding 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 TensorAddressTensorAddress.of(int... labels) static TensorAddressTensorAddress.of(long... labels) static TensorAddressstatic TensorAddressTensorAddress.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 TensorAddressTensorAddress.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) intTensorAddress.compareTo(TensorAddress other) MixedTensor.BoundBuilder.denseSubspaceBuilder(TensorAddress sparseAddress) doubleIndexedTensor.get(TensorAddress address) Returns the value at this address, or 0.0 if there is no value at this addressdoubleMappedTensor.get(TensorAddress address) doubleMixedTensor.get(TensorAddress address) Returns the value at the given addressdoubleTensor.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.booleanIndexedTensor.has(TensorAddress address) booleanMappedTensor.has(TensorAddress address) booleanMixedTensor.has(TensorAddress address) booleanTensor.has(TensorAddress address) Returns true if this cell existsMethod parameters in com.yahoo.tensor with type arguments of type TensorAddressModifier and TypeMethodDescriptiondefault TensorTensor.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 TypeClassDescriptionclassParent of tensor address family centered around each dimension as int.Methods in com.yahoo.tensor.impl that return TensorAddressModifier and TypeMethodDescriptionstatic TensorAddressTensorAddressAny.of()static TensorAddressTensorAddressAny.of(int label) static TensorAddressTensorAddressAny.of(int... labels) static TensorAddressTensorAddressAny.of(int label0, int label1) static TensorAddressTensorAddressAny.of(int label0, int label1, int label2) static TensorAddressTensorAddressAny.of(int label0, int label1, int label2, int label3) static TensorAddressTensorAddressAny.of(long label) static TensorAddressTensorAddressAny.of(long... labels) static TensorAddressTensorAddressAny.of(long label0, long label1) static TensorAddressTensorAddressAny.of(long label0, long label1, long label2) static TensorAddressTensorAddressAny.of(long label0, long label1, long label2, long label3) static TensorAddressstatic TensorAddressstatic TensorAddressstatic TensorAddressstatic TensorAddressstatic TensorAddressstatic TensorAddress