Package com.yahoo.tensor
Class MixedTensor.BoundBuilder
java.lang.Object
com.yahoo.tensor.MixedTensor.Builder
com.yahoo.tensor.MixedTensor.BoundBuilder
- All Implemented Interfaces:
Tensor.Builder
- Enclosing class:
- MixedTensor
Builder for mixed tensors with bound indexed dimensions.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.yahoo.tensor.Tensor.Builder
Tensor.Builder.CellBuilder
-
Method Summary
Modifier and TypeMethodDescriptionblock
(TensorAddress sparsePart, double[] values) build()
cell
(TensorAddress address, double value) Add a cellcell
(TensorAddress address, float value) denseSubspaceBuilder
(TensorAddress sparseAddress) long
static MixedTensor.BoundBuilder
of
(TensorType type) Creates a suitable builder for the given typeMethods 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
-
denseSubspaceSize
public long denseSubspaceSize() -
denseSubspaceBuilder
-
cell
-
cell
Description copied from interface:Tensor.Builder
Add a cell -
block
-
build
- Specified by:
build
in interfaceTensor.Builder
- Specified by:
build
in classMixedTensor.Builder
-
of
Description copied from interface:Tensor.Builder
Creates a suitable builder for the given type
-