hexagon logo

Quasar: How can I get max and min of array?

Quasar: How can I get max and min of array?
  • There is a quasar function which extracts the maximum and the minimum row by row or column by column from a matrix.
     
    Here is the quasar function:
     
    -ext("operator","matrix","keyword3",mat_a)
     
    With "keyword3":
    • c_min: extract the minimum value by column of the matrix.
    • c_max: extract the maximum value by column of the matrix.
    • r_min: extract the minimum value by row of the matrix.
    • r_max: extract the maximum value by row of the matrix.
     
    And argument list:
    • mat_a: Input matrix (Matrix name).