Class AggregateSemiring
java.lang.Object
org.flag4j.linalg.ops.common.semiring_ops.AggregateSemiring
-
Method Summary
-
Method Details
-
sum
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. If {data.length == 0}, null will be returned.
-
prod
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. If {data.length == 0}, null will be returned.
-