cc.redberry.core.tensor
Class PowerBuilder
- java.lang.Object
-
- cc.redberry.core.tensor.PowerBuilder
-
- All Implemented Interfaces:
- TensorBuilder
public final class PowerBuilder extends java.lang.Object implements TensorBuilder
TensorBuilderfor powers. The implementation is based onPowerFactory.- Since:
- 1.0
- See Also:
Power
-
-
Constructor Summary
Constructors Constructor and Description PowerBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Tensorbuild()Builds the tensor.TensorBuilderclone()voidput(Tensor tensor)Method to sequentially add sub-tensors to the future tensor.
-
-
-
Method Detail
-
build
public Tensor build()
Description copied from interface:TensorBuilderBuilds the tensor. This method should be called only once for the particular object.- Specified by:
buildin interfaceTensorBuilder- Returns:
- resulting tensor
-
put
public void put(Tensor tensor)
Description copied from interface:TensorBuilderMethod to sequentially add sub-tensors to the future tensor.- Specified by:
putin interfaceTensorBuilder- Parameters:
tensor- sub-tensor to be added
-
clone
public TensorBuilder clone()
- Specified by:
clonein interfaceTensorBuilder- Overrides:
clonein classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG