less#
- class brainunit.math.less(x, y, *args, **kwargs)#
Return
(x < y)element-wise.When both
xandyare Quantities,yis converted to the unit ofxbefore comparison.- Parameters:
x (saiunit.Quantity |
Array|ndarray|number|bool) – First input array.y (saiunit.Quantity |
Array|ndarray|number|bool) – Second input array. Must be broadcastable withx.
- Returns:
out – Element-wise less-than comparison.
- Return type:
bool|Array
Examples
>>> import saiunit as u >>> import jax.numpy as jnp >>> u.math.less(jnp.array([1, 2, 3]), jnp.array([3, 2, 1])) Array([ True, False, False], dtype=bool)