java.lang.Object
org.flag4j.linalg.ops.common.semiring_ops.AggregateSemiring
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AggregateSemiRing
private AggregateSemiRing()
-
-
Method Details
-
sum
Computes the sum of all entries 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 entries in this tensor. If {entries.length == 0}, null will be returned.
-
prod
Computes the sum of all entries 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 entries in this tensor. If {entries.length == 0}, null will be returned.
-