Class AggregateComplex
java.lang.Object
org.flag4j.operations.common.complex.AggregateComplex
This class contains several low-level methods useful for computing aggregation operations on dense/sparse complex tensors.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
Computes the maximum absolute value in a tensor.static double
Computes the minimum absolute value in a tensor.static CNumber
Computes the sum of all entries in this tensor.
-
Constructor Details
-
AggregateComplex
private AggregateComplex()
-
-
Method Details
-
sum
-
minAbs
Computes the minimum absolute value in a tensor. Note, if the entries array is empty, this method will return 0 allowing this method to be used for real sparse or dense tensors.- Parameters:
entries
- Entries of the tensor.- Returns:
- The minimum absolute value in the tensor.
-
maxAbs
Computes the maximum absolute value in a tensor. Note, if the entries array is empty, this method will return 0 allowing this method to be used for real sparse or dense tensors.- Parameters:
entries
- Entries of the tensor.- Returns:
- The maximum absolute value in the tensor.
-