Skip to content

module minmax


class MinMax

A MinMax model vAccel resource.

Attributes:

  • def_arg_write (bytes): The result of the operation
  • __op__: The genop operation type

classmethod minmax

minmax(
    indata: int,
    ndata: 'str | bytes',
    low_threshold: 'int',
    high_threshold: 'int'
)

Performs the MinMax operation using vAccel over genop.

Args:

  • indata: An integer giving the number of inputs
  • ndata: A string or bytes object containing the ndata file path
  • low_theshold: An integer value for low threshold
  • high_threshold: An integer value for high threshold

Returns:

  • outdata: The array of floats, sorted
  • min: A float number for the min value
  • max: A float number for the max value