Package org.ojalgo.array.operation
Class ASUM
- java.lang.Object
-
- org.ojalgo.array.operation.ASUM
-
- All Implemented Interfaces:
ArrayOperation
public abstract class ASUM extends java.lang.Object implements ArrayOperation
The ?asum routine computes the sum of the magnitudes of elements of a real vector, or the sum of magnitudes of the real and imaginary parts of elements of a complex vector: res = |Re x1| + |Im x1| + |Re x2| + |Im x2|+ ... + |Re xn| + |Im xn|, where x is a vector with n elements.
-
-
Field Summary
Fields Modifier and Type Field Description static int
THRESHOLD
-
Constructor Summary
Constructors Constructor Description ASUM()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
invoke(double[] data, int first, int limit, int step)
-