Package com.yahoo.tensor.functions
@ExportPackage
@PublicApi
package com.yahoo.tensor.functions
Tensor function evaluation
- Author:
- bratseth
-
ClassDescriptionThe cell_cast tensor function creates a new tensor with the specified cell value type.CompositeTensorFunction<NAMETYPE extends Name>A composite tensor function is a tensor function which can be expressed (less tersely) as a tree of primitive tensor functions.Concatenation of two tensors along an (indexed) dimensionConstantTensor<NAMETYPE extends Name>A function which returns a constant tensor.A tensor generator which returns a tensor of any dimension filled with 1 in the diagonal and 0 elsewhere.DynamicTensor<NAMETYPE extends Name>A function which is a tensor whose values are computed by individual lambda functions on evaluation.The expand tensor function returns a tensor with a new dimension of size 1 is added, equivalent to "tensor * tensor(dim_name[1])(1)".An indexed tensor whose values are generated by a functionThe join tensor operation produces a tensor from the argument tensors containing the set of cells given by the cross product of the cells of the given tensors, having as values the value produced by applying the given combinator function on the values from the two source cells.L1Normalize<NAMETYPE extends Name>L2Normalize<NAMETYPE extends Name>The map tensor function produces a tensor where the given function is applied on each cell value.The merge tensor operation produces from two argument tensors having equal types a tensor having the same type where the values are the union of the values of both tensors.PrimitiveTensorFunction<NAMETYPE extends Name>A primitive tensor function is a tensor function which cannot be expressed in terms of other tensor functions.A tensor generator which returns a tensor of any dimension filled with random numbers between 0 and 1.A tensor generator which returns a tensor of any dimension filled with the sum of the tensor indexes of each position.The reduce tensor operation returns a tensor produced from the argument tensor where some dimensions are collapsed to a single value using an aggregator function.ReduceJoin<NAMETYPE extends Name>An optimization for tensor expressions where a join immediately follows a reduce.The rename tensor function returns a tensor where some dimensions are assigned new names.ScalarFunction<NAMETYPE extends Name>A function which returns a scalarFactory of scalar Java functions.Returns a subspace of a tensorSlice.DimensionValue<NAMETYPE extends Name>TensorFunction<NAMETYPE extends Name>A representation of a tensor function which is able to be translated to a set of primitive tensor functions if necessary.ToStringContext<NAMETYPE extends Name>A context which is passed down to all nested functions when returning a string representation.ToStringContext.EmptyStringContext<NAMETYPE extends Name>