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 intinvoke(byte[] data, int first, int limit, int step) static longinvoke(double[][] data) static voidinvoke(double[] data, double[] array1, double[] array2) static intinvoke(double[] data, int first, int limit, int step) static intinvoke(float[] data, int first, int limit, int step) static intinvoke(int[] data, int first, int limit, int step) static intinvoke(long[] data, int first, int limit, int step) static intinvoke(short[] data, int first, int limit, int step) static intinvoke(BigDecimal[] data, int first, int limit, int step) static <N extends Scalar<N>>
intinvoke(N[] data, int first, int limit, int step) static intinvoke(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 void invoke(double[] data, double[] array1, double[] array2) -
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)
-