Class AMAX

java.lang.Object
org.ojalgo.array.operation.AMAX
All Implemented Interfaces:
ArrayOperation

public abstract class AMAX extends 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
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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(BigDecimal[] data, int first, int limit, int step)
     
    static <N extends Scalar<N>>
    int
    invoke(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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • THRESHOLD

      public static int THRESHOLD
  • Constructor Details

    • AMAX

      public AMAX()
  • Method Details

    • invoke

      public static long invoke(Access1D<?> data, long first, long limit, long step)
    • invoke

      public static int invoke(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)