pyyeti.cla.nan_argmin¶
- pyyeti.cla.nan_argmin(v1, v2)[source]¶
Find where v2 is less than v1 ignoring NaNs.
- Parameters:
v1 (ndarray) – First set of values to compare
v2 (ndarray) – Second set of values to compare; must be broadcast-compatible with v1.
- Returns:
pv (bool ndarray) – Contains True where v2 is less than v1 ignoring NaNs.
Examples
>>> import numpy as np >>> from pyyeti import cla >>> v1 = np.array([1.0, np.nan, 2.0, np.nan]) >>> v2 = np.array([-2.0, 3.0, np.nan, np.nan]) >>> cla.nan_argmax(v1, v2) array([False, True, False, False], dtype=bool) >>> cla.nan_argmin(v1, v2) array([ True, True, False, False], dtype=bool)