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) longstatic MixedTensor.BoundBuilderof(TensorType type) Creates a suitable builder for the given typeMethods inherited from class com.yahoo.tensor.MixedTensor.Builder
cell, cell, cell, typeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.BuilderAdd a cell -
block
-
build
- Specified by:
buildin interfaceTensor.Builder- Specified by:
buildin classMixedTensor.Builder
-
of
Description copied from interface:Tensor.BuilderCreates a suitable builder for the given type
-