Uses of Interface
com.yahoo.tensor.Tensor
Packages that use Tensor
Package
Description
Tensor data types
Tensor data types
Tensor function evaluation
-
Uses of Tensor in com.yahoo.tensor
Classes in com.yahoo.tensor that implement TensorModifier and TypeClassDescriptionclassAn indexed (dense) tensor.classA sparse implementation of a tensor backed by a Map of cells to values.classA mixed tensor type.Methods in com.yahoo.tensor that return TensorModifier and TypeMethodDescriptiondefault Tensordefault TensorTensor.approxEqual(Tensor argument) default Tensordefault Tensordefault Tensordefault TensorTensor.avg()default Tensordefault Tensordefault TensorTensor.Builder.build()default TensorTensor.cellCast(TensorType.Value valueType) default Tensordefault Tensordefault TensorTensor.count()default Tensordefault Tensorstatic TensorTensor.diag(TensorType type) default Tensordefault Tensordefault Tensordefault Tensorstatic TensorTensor.from(double value) Returns a double as a tensor: A dimensionless tensor containing the value as its cellstatic TensorTensor.from(TensorType type, String tensorString) Returns a tensor instance containing the given data on the tensor literal form.static TensorReturns a tensor instance containing the given data on the tensor literal form.static TensorReturns a tensor instance containing the given data on the tensor literal form.static Tensordefault Tensordefault TensorTensor.join(Tensor argument, DoubleBinaryOperator combinator) default TensorTensor.l1Normalize(String dimension) default TensorTensor.l2Normalize(String dimension) default Tensordefault TensorTensor.largerOrEqual(Tensor argument) default Tensordefault TensorTensor.map(DoubleUnaryOperator mapper) default Tensordefault TensorTensor.max()default Tensordefault Tensordefault Tensordefault TensorTensor.median()default Tensordefault Tensordefault TensorTensor.merge(Tensor argument, DoubleBinaryOperator combinator) default TensorTensor.min()default Tensordefault Tensordefault Tensordefault 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.default Tensordefault Tensorstatic TensorConverts any tensor into one where each consecutive 8 values in the dense dimension are packed into a single byte, by setting a bit to 1 when the tensor has a positive value and 0 otherwise.default Tensordefault TensorTensor.prod()default Tensordefault Tensorstatic TensorTensor.random(TensorType type) static TensorTensor.range(TensorType type) default TensorTensor.reduce(Reduce.Aggregator aggregator, String... dimensions) Aggregates cells over a set of dimensions, or over all dimensions if no dimensions are specifieddefault TensorTensor.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 Tensordefault Tensordefault Tensordefault TensorTensor.smallerOrEqual(Tensor argument) default Tensordefault Tensordefault TensorTensor.sum()default Tensordefault Tensorstatic TensorConverts the given dimensions from dense to sparse.MappedTensor.withType(TensorType other) MixedTensor.withType(TensorType other) Tensor.withType(TensorType type) Returns this tensor with the given type if types are compatibledefault TensorMethods in com.yahoo.tensor with parameters of type TensorModifier and TypeMethodDescriptiondefault Tensordefault TensorTensor.approxEqual(Tensor argument) default Tensordefault Tensordefault Tensordefault Tensordefault Tensorstatic booleanImplemented here to make this work across implementations.default Tensordefault Tensordefault TensorTensor.join(Tensor argument, DoubleBinaryOperator combinator) default Tensordefault TensorTensor.largerOrEqual(Tensor argument) default Tensordefault Tensordefault Tensordefault TensorTensor.merge(Tensor argument, DoubleBinaryOperator combinator) default Tensordefault Tensordefault Tensorstatic TensorConverts any tensor into one where each consecutive 8 values in the dense dimension are packed into a single byte, by setting a bit to 1 when the tensor has a positive value and 0 otherwise.default Tensordefault Tensordefault TensorTensor.smallerOrEqual(Tensor argument) default Tensorstatic TensorConverts the given dimensions from dense to sparse.static StringTensor.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 StringTensor.valueToString(Tensor tensor, boolean shortForms, long maxCells) default Tensor -
Uses of Tensor in com.yahoo.tensor.evaluation
Methods in com.yahoo.tensor.evaluation that return TensorModifier and TypeMethodDescriptionVariableTensor.evaluate(EvaluationContext<NAMETYPE> context) Returns the tensor bound to this name, or null if noneMethods in com.yahoo.tensor.evaluation with parameters of type Tensor -
Uses of Tensor in com.yahoo.tensor.functions
Methods in com.yahoo.tensor.functions that return TensorModifier 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) CosineSimilarity.evaluate(EvaluationContext<NAMETYPE> context) Evaluates this by first converting it to a primitive functionEuclideanDistance.evaluate(EvaluationContext<NAMETYPE> context) Evaluates this by first converting it to a primitive functionGenerate.evaluate(EvaluationContext<NAMETYPE> context) Join.evaluate(EvaluationContext<NAMETYPE> context) Map.evaluate(EvaluationContext<NAMETYPE> context) MapSubspaces.evaluate(EvaluationContext<NAMETYPE> context) Merge.evaluate(EvaluationContext<NAMETYPE> context) Reduce.evaluate(EvaluationContext<NAMETYPE> context) final TensorReduceJoin.evaluate(EvaluationContext<NAMETYPE> context) Rename.evaluate(EvaluationContext<NAMETYPE> context) Slice.evaluate(EvaluationContext<NAMETYPE> context) final TensorTensorFunction.evaluate()Evaluate with no contextabstract TensorTensorFunction.evaluate(EvaluationContext<NAMETYPE> context) Evaluates this tensor.Methods in com.yahoo.tensor.functions with parameters of type TensorModifier and TypeMethodDescriptionbooleanReduceJoin.canOptimize(Tensor a, Tensor b) Tests whether or not the reduce is over the join dimensions.Constructors in com.yahoo.tensor.functions with parameters of type Tensor -
Uses of Tensor in com.yahoo.tensor.serialization
Methods in com.yahoo.tensor.serialization that return TensorModifier and TypeMethodDescriptionDenseBinaryFormat.decode(Optional<TensorType> optionalType, GrowableByteBuffer buffer) static TensorJsonFormat.decode(TensorType type, byte[] jsonTensorValue) Deserializes the given tensor from JSON formatstatic TensorTypedBinaryFormat.decode(Optional<TensorType> type, GrowableByteBuffer buffer) Decode some data to a tensorMethods in com.yahoo.tensor.serialization with parameters of type TensorModifier and TypeMethodDescriptionvoidDenseBinaryFormat.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[]JsonFormat.encode(Tensor tensor, JsonFormat.EncodeOptions options) Serializes the given tensor value into JSON format.static byte[]static GrowableByteBufferTypedBinaryFormat.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)