Uses of Interface
com.yahoo.tensor.Tensor
Package
Description
Tensor data types
Tensor data types
Tensor function evaluation
-
Uses of Tensor in com.yahoo.tensor
Modifier and TypeClassDescriptionclass
An indexed (dense) tensor.class
A sparse implementation of a tensor backed by a Map of cells to values.class
A mixed tensor type.Modifier and TypeMethodDescriptiondefault Tensor
default Tensor
Tensor.approxEqual
(Tensor argument) default Tensor
default Tensor
default Tensor
default Tensor
Tensor.avg()
default Tensor
default Tensor
default Tensor
Tensor.Builder.build()
default Tensor
Tensor.cellCast
(TensorType.Value valueType) default Tensor
default Tensor
default Tensor
Tensor.count()
default Tensor
default Tensor
static Tensor
Tensor.diag
(TensorType type) default Tensor
default Tensor
default Tensor
default Tensor
static Tensor
Tensor.from
(double value) Returns a double as a tensor: A dimensionless tensor containing the value as its cellstatic Tensor
Tensor.from
(TensorType type, String tensorString) Returns a tensor instance containing the given data on the tensor literal form.static Tensor
Returns a tensor instance containing the given data on the tensor literal form.static Tensor
Returns a tensor instance containing the given data on the tensor literal form.static Tensor
default Tensor
default Tensor
Tensor.join
(Tensor argument, DoubleBinaryOperator combinator) default Tensor
Tensor.l1Normalize
(String dimension) default Tensor
Tensor.l2Normalize
(String dimension) default Tensor
default Tensor
Tensor.largerOrEqual
(Tensor argument) default Tensor
default Tensor
Tensor.map
(DoubleUnaryOperator mapper) default Tensor
default Tensor
Tensor.max()
default Tensor
default Tensor
default Tensor
default Tensor
Tensor.median()
default Tensor
default Tensor
default Tensor
Tensor.merge
(Tensor argument, DoubleBinaryOperator combinator) default Tensor
Tensor.min()
default Tensor
default Tensor
default Tensor
default 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.default Tensor
default Tensor
default Tensor
default Tensor
Tensor.prod()
default Tensor
default Tensor
static Tensor
Tensor.random
(TensorType type) static Tensor
Tensor.range
(TensorType type) default Tensor
Tensor.reduce
(Reduce.Aggregator aggregator, String... dimensions) Aggregates cells over a set of dimensions, or over all dimensions if no dimensions are specifieddefault Tensor
Tensor.reduce
(Reduce.Aggregator aggregator, List<String> dimensions) Aggregates cells over a set of dimensions, or over all dimensions if no dimensions are specifiedIndexedTensor.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.default Tensor
default Tensor
default Tensor
default Tensor
Tensor.smallerOrEqual
(Tensor argument) default Tensor
default Tensor
default Tensor
Tensor.sum()
default Tensor
default Tensor
MappedTensor.withType
(TensorType other) MixedTensor.withType
(TensorType other) Tensor.withType
(TensorType type) Returns this tensor with the given type if types are compatibledefault Tensor
Modifier and TypeMethodDescriptiondefault Tensor
default Tensor
Tensor.approxEqual
(Tensor argument) default Tensor
default Tensor
default Tensor
default Tensor
default Tensor
static boolean
Implement here to make this work across implementations.default Tensor
default Tensor
default Tensor
Tensor.join
(Tensor argument, DoubleBinaryOperator combinator) default Tensor
default Tensor
Tensor.largerOrEqual
(Tensor argument) default Tensor
default Tensor
default Tensor
default Tensor
Tensor.merge
(Tensor argument, DoubleBinaryOperator combinator) default Tensor
default Tensor
default Tensor
default Tensor
default Tensor
default Tensor
Tensor.smallerOrEqual
(Tensor argument) default Tensor
static String
Tensor.toStandardString
(Tensor tensor, boolean withType, boolean shortForms, long maxCells) Call this from toString in implementations to return this tensor on the tensor literal form.static String
Tensor.valueToString
(Tensor tensor, boolean shortForms, long maxCells) default Tensor
-
Uses of Tensor in com.yahoo.tensor.evaluation
Modifier and TypeMethodDescriptionVariableTensor.evaluate
(EvaluationContext<NAMETYPE> context) Returns the tensor bound to this name, or null if none -
Uses of Tensor in com.yahoo.tensor.functions
Modifier and TypeMethodDescriptionCellCast.evaluate
(EvaluationContext<NAMETYPE> context) CompositeTensorFunction.evaluate
(EvaluationContext<NAMETYPE> context) Evaluates this by first converting it to a primitive functionConcat.evaluate
(EvaluationContext<NAMETYPE> context) ConstantTensor.evaluate
(EvaluationContext<NAMETYPE> context) Generate.evaluate
(EvaluationContext<NAMETYPE> context) Join.evaluate
(EvaluationContext<NAMETYPE> context) Map.evaluate
(EvaluationContext<NAMETYPE> context) Merge.evaluate
(EvaluationContext<NAMETYPE> context) Reduce.evaluate
(EvaluationContext<NAMETYPE> context) final Tensor
ReduceJoin.evaluate
(EvaluationContext<NAMETYPE> context) Rename.evaluate
(EvaluationContext<NAMETYPE> context) Slice.evaluate
(EvaluationContext<NAMETYPE> context) final Tensor
TensorFunction.evaluate()
Evaluate with no contextabstract Tensor
TensorFunction.evaluate
(EvaluationContext<NAMETYPE> context) Evaluates this tensor.Modifier and TypeMethodDescriptionboolean
ReduceJoin.canOptimize
(Tensor a, Tensor b) Tests whether or not the reduce is over the join dimensions. -
Uses of Tensor in com.yahoo.tensor.serialization
Modifier and TypeMethodDescriptionDenseBinaryFormat.decode
(Optional<TensorType> optionalType, GrowableByteBuffer buffer) static Tensor
JsonFormat.decode
(TensorType type, byte[] jsonTensorValue) Deserializes the given tensor from JSON formatstatic Tensor
TypedBinaryFormat.decode
(Optional<TensorType> type, GrowableByteBuffer buffer) Decode some data to a tensorModifier and TypeMethodDescriptionvoid
DenseBinaryFormat.encode
(GrowableByteBuffer buffer, Tensor tensor) static byte[]
Serializes the given tensor value into JSON format, in long format, wrapped in an object containing "cells" only.static byte[]
Serializes the given tensor value into JSON format.static byte[]
static GrowableByteBuffer
TypedBinaryFormat.encode
(Tensor tensor, GrowableByteBuffer buffer) static byte[]
JsonFormat.encodeShortForm
(Tensor tensor) Deprecated.use #encode(#Tensor, boolean, boolean)static byte[]
JsonFormat.encodeWithType
(Tensor tensor) Deprecated.use #encode(#Tensor, boolean, boolean)