Package com.yahoo.tensor
Class MixedTensor.Builder
java.lang.Object
com.yahoo.tensor.MixedTensor.Builder
- All Implemented Interfaces:
Tensor.Builder
- Direct Known Subclasses:
MixedTensor.BoundBuilder
- Enclosing class:
- MixedTensor
Base class for building mixed tensors.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.yahoo.tensor.Tensor.Builder
Tensor.Builder.CellBuilder -
Method Summary
Modifier and TypeMethodDescriptionabstract MixedTensorbuild()cell()Return a cell buildercell(double value, long... labels) Add a cellcell(float value, long... labels) static MixedTensor.Builderof(TensorType type) Create a builder depending upon the type of indexed dimensions.type()Returns the type of the tensor this is building
-
Method Details
-
of
Create a builder depending upon the type of indexed dimensions. If at least one indexed dimension is unbound, we create a temporary structure while finding dimension bounds. -
type
Description copied from interface:Tensor.BuilderReturns the type of the tensor this is building- Specified by:
typein interfaceTensor.Builder
-
cell
- Specified by:
cellin interfaceTensor.Builder
-
cell
Description copied from interface:Tensor.BuilderAdd a cell- Specified by:
cellin interfaceTensor.Builder
-
cell
Description copied from interface:Tensor.BuilderReturn a cell builder- Specified by:
cellin interfaceTensor.Builder
-
build
- Specified by:
buildin interfaceTensor.Builder
-