Package org.ojalgo.array.operation
Class AMAX
java.lang.Object
org.ojalgo.array.operation.AMAX
- All Implemented Interfaces:
ArrayOperation
Given a vector x, the i?amax functions return the position of the vector element x[i] that has the largest
absolute value for real flavors, or the largest sum |Re(x[i])|+|Im(x[i])| for complex flavors. If n is not
positive, 0 is returned. If more than one vector element is found with the same largest absolute value, the
index of the first one encountered is returned.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
invoke
(byte[] data, int first, int limit, int step) static long
invoke
(double[][] data) static int
invoke
(double[] data, int first, int limit, int step) static int
invoke
(float[] data, int first, int limit, int step) static int
invoke
(int[] data, int first, int limit, int step) static int
invoke
(long[] data, int first, int limit, int step) static int
invoke
(short[] data, int first, int limit, int step) static int
invoke
(BigDecimal[] data, int first, int limit, int step) static <N extends Scalar<N>>
intinvoke
(N[] data, int first, int limit, int step) static int
invoke
(PlainArray<?> data, int first, int limit, int step) static long
-
Field Details
-
THRESHOLD
public static int THRESHOLD
-
-
Constructor Details
-
AMAX
public AMAX()
-
-
Method Details
-
invoke
-
invoke
-
invoke
public static int invoke(byte[] data, int first, int limit, int step) -
invoke
public static int invoke(double[] data, int first, int limit, int step) -
invoke
public static long invoke(double[][] data) -
invoke
public static int invoke(float[] data, int first, int limit, int step) -
invoke
public static int invoke(int[] data, int first, int limit, int step) -
invoke
public static int invoke(long[] data, int first, int limit, int step) -
invoke
-
invoke
-
invoke
public static int invoke(short[] data, int first, int limit, int step)
-