Package org.ojalgo.array.operation
Class ASUM
java.lang.Object
org.ojalgo.array.operation.ASUM
- All Implemented Interfaces:
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double
invoke
(double[] data, int first, int limit, int step)
-
Field Details
-
THRESHOLD
public static int THRESHOLD
-
-
Constructor Details
-
ASUM
public ASUM()
-
-
Method Details
-
invoke
public static double invoke(double[] data, int first, int limit, int step)
-