cc.redberry.core.tensor
Class ScalarsBackedProductBuilder
- java.lang.Object
-
- cc.redberry.core.tensor.ScalarsBackedProductBuilder
-
- All Implemented Interfaces:
- TensorBuilder
public class ScalarsBackedProductBuilder extends java.lang.Object implements TensorBuilder
Implementation of product builder, which puts similar scalar subproducts together.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor and Description ScalarsBackedProductBuilder()ScalarsBackedProductBuilder(int powersCapacity, int componentsCapacity, int indicesCapacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Tensorbuild()Builds the tensor.ScalarsBackedProductBuilderclone()voidput(Tensor tensor)Method to sequentially add sub-tensors to the future tensor.
-
-
-
Constructor Detail
-
ScalarsBackedProductBuilder
public ScalarsBackedProductBuilder()
-
ScalarsBackedProductBuilder
public ScalarsBackedProductBuilder(int powersCapacity, int componentsCapacity, int indicesCapacity)
-
-
Method Detail
-
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
-
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
-
clone
public ScalarsBackedProductBuilder clone()
- Specified by:
clonein interfaceTensorBuilder- Overrides:
clonein classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG