fmax#
- class brainunit.math.fmax(x1, x2, **kwargs)#
Element-wise maximum of array elements ignoring NaNs.
- Parameters:
- 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 >>> import jax.numpy as jnp >>> a = [1.0, jnp.nan, 5.0] * u.meter >>> b = [2.0, 2.0, 4.0] * u.meter >>> u.math.fmax(a, b)