Package com.yahoo.tensor
Class MixedTensor.UnboundBuilder
java.lang.Object
com.yahoo.tensor.MixedTensor.Builder
com.yahoo.tensor.MixedTensor.UnboundBuilder
- All Implemented Interfaces:
Tensor.Builder
- Enclosing class:
- MixedTensor
Temporarily stores all cells to find bounds of indexed dimensions,
then creates a tensor using BoundBuilder. This is due to the
fact that for serialization the size of the dense subspace must be
known, and equal for all dense subspaces. A side effect is that the
tensor type is effectively changed, such that unbound indexed
dimensions become bound.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.yahoo.tensor.Tensor.Builder
Tensor.Builder.CellBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
cell
(TensorAddress address, double value) Add a cellcell
(TensorAddress address, float value) static MixedTensor.UnboundBuilder
of
(TensorType type) Creates a suitable builder for the given typevoid
trackBounds
(TensorAddress address) Methods inherited from class com.yahoo.tensor.MixedTensor.Builder
cell, cell, cell, type
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.yahoo.tensor.Tensor.Builder
cell, cell, cell
-
Method Details
-
cell
-
cell
Description copied from interface:Tensor.Builder
Add a cell -
build
- Specified by:
build
in interfaceTensor.Builder
- Specified by:
build
in classMixedTensor.Builder
-
trackBounds
-
createBoundType
-
of
Description copied from interface:Tensor.Builder
Creates a suitable builder for the given type
-