Documentation of 'cc.redberry.core.tensor.ProductBuilder' Java class
ProductBuilder
cc.redberry.core.tensor

Class ProductBuilder

  • All Implemented Interfaces:
    TensorBuilder


    public final class ProductBuilder
    extends java.lang.Object
    implements TensorBuilder
    Implementation of product builder. It performs basic simplifications and reduces the resulting product to the standard form.
    Since:
    1.0
    • Constructor Summary

      Constructors 
      Constructor and Description
      ProductBuilder()
      Creates builder with default initial capacity.
      ProductBuilder(int initialCapacityIndexless, int initialCapacityData)
      Creates builder with initial capacities of indexless and indexed parts.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      Tensor build()
      Builds the tensor.
      ProductBuilder clone() 
      void put(Tensor tensor)
      Method to sequentially add sub-tensors to the future tensor.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProductBuilder

        public ProductBuilder(int initialCapacityIndexless,
                              int initialCapacityData)
        Creates builder with initial capacities of indexless and indexed parts.
        Parameters:
        initialCapacityIndexless - initial capacity of indexless data
        initialCapacityData - initial capacity of indexed data
      • ProductBuilder

        public ProductBuilder()
        Creates builder with default initial capacity.
    • Method Detail

      • build

        public Tensor build()
        Description copied from interface: TensorBuilder
        Builds the tensor. This method should be called only once for the particular object.
        Specified by:
        build in interface TensorBuilder
        Returns:
        resulting tensor
      • put

        public void put(Tensor tensor)
        Description copied from interface: TensorBuilder
        Method to sequentially add sub-tensors to the future tensor.
        Specified by:
        put in interface TensorBuilder
        Parameters:
        tensor - sub-tensor to be added

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.