afp_scan

Inclusive or exclusive scan of an array.

Arguments

  1. Input array, values
  2. Integer, dimension: 0 - rows, 1 - columns
  3. Integer or string, binary operation: 0/'+' - add, 1/'*' - multiply, 2/'min' - minimum, 3/'max' - maximum
  4. Boolean, specifying whether scan is inclusive

Output

Resulting value or array

Examples

afp_scan