Package com.yahoo.tensor
Class MappedTensor.Builder
java.lang.Object
com.yahoo.tensor.MappedTensor.Builder
- All Implemented Interfaces:
Tensor.Builder
- Enclosing class:
- MappedTensor
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.yahoo.tensor.Tensor.Builder
Tensor.Builder.CellBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
cell()
Return a cell buildercell
(double value, long... labels) Add a cellcell
(float value, long... labels) cell
(TensorAddress address, double value) Add a cellcell
(TensorAddress address, float value) static MappedTensor.Builder
of
(TensorType type) Creates a suitable builder for the given typetype()
Returns the type of the tensor this is buildingMethods 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
-
of
Description copied from interface:Tensor.Builder
Creates a suitable builder for the given type -
cell
Description copied from interface:Tensor.Builder
Return a cell builder- Specified by:
cell
in interfaceTensor.Builder
-
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
- Specified by:
cell
in interfaceTensor.Builder
-
cell
Description copied from interface:Tensor.Builder
Add a cell- Specified by:
cell
in interfaceTensor.Builder
-
build
- Specified by:
build
in interfaceTensor.Builder
-