Class AggregateReal

java.lang.Object
org.flag4j.linalg.ops.common.real.AggregateReal

public final class AggregateReal extends Object
This utility class contains several low-level methods useful for computing aggregation ops on dense/sparse tensors.
  • Method Details

    • sum

      public static double sum(double... entries)
      Computes the sum of all data in this tensor. This can be applied to either real dense or spase tensors.
      Parameters:
      entries - Entries of the tensor.
      Returns:
      The sum of all data in this tensor.
    • prod

      public static double prod(double... entries)
      Computes the sum of all data in this tensor. This can be applied to either real dense or spase tensors.
      Parameters:
      entries - Entries of the tensor.
      Returns:
      The sum of all data in this tensor.