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
,MixedTensor.UnboundBuilder
- 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 MixedTensor
build()
cell()
Return a cell buildercell
(double value, long... labels) Add a cellcell
(float value, long... labels) static MixedTensor.Builder
of
(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.Builder
Returns the type of the tensor this is building- Specified by:
type
in interfaceTensor.Builder
-
cell
- Specified by:
cell
in interfaceTensor.Builder
-
cell
Description copied from interface:Tensor.Builder
Add a cell- Specified by:
cell
in interfaceTensor.Builder
-
cell
Description copied from interface:Tensor.Builder
Return a cell builder- Specified by:
cell
in interfaceTensor.Builder
-
build
- Specified by:
build
in interfaceTensor.Builder
-