maximum

Contents

maximum#

class saiunit.math.maximum(x1, x2, **kwargs)#

Element-wise maximum of array elements.

Parameters:
  • x1 (saiunit.Quantity | Array | ndarray | bool | number | bool | int | float | complex) – Input array.

  • x2 (saiunit.Quantity | Array | ndarray | bool | number | bool | int | float | complex) – Input array.

Returns:

out – Quantity if x1 and x2 are Quantities that have the same unit, else an array.

Return type:

saiunit.Quantity | Array

Examples

>>> import saiunit as u
>>> a = [1, 3, 5] * u.second
>>> b = [2, 2, 4] * u.second
>>> u.math.maximum(a, b)