Package org.ojalgo.array.operation
Class AMAX
- java.lang.Object
-
- org.ojalgo.array.operation.AMAX
-
- All Implemented Interfaces:
ArrayOperation
public abstract class AMAX extends java.lang.Object implements 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 Modifier and Type Field Description static int
THRESHOLD
-
Constructor Summary
Constructors Constructor Description AMAX()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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(java.math.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
invoke(Access1D<?> data, long first, long limit, long step)
-
-
-
Method Detail
-
invoke
public static long invoke(Access1D<?> data, long first, long limit, long step)
-
invoke
public static int invoke(java.math.BigDecimal[] data, int first, int limit, int step)
-
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
public static <N extends Scalar<N>> int invoke(N[] data, int first, int limit, int step)
-
invoke
public static int invoke(PlainArray<?> data, int first, int limit, int step)
-
invoke
public static int invoke(short[] data, int first, int limit, int step)
-
-