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

Class 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 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: TensorBuilder
        Method to sequentially add sub-tensors to the future tensor.
        Specified by:
        put in interface TensorBuilder
        Parameters:
        tensor - sub-tensor to be added
      • 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

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.