afp_imax

Find the maximum values and their locations.

Arguments

  1. Input array, values
  2. Integer, dimension: 0 - columns, 1 - rows

Output

Resulting vector, position 0: max values, position 1: location of max values

Examples

afp_imax