pyyeti.locate.index2bool¶
- pyyeti.locate.index2bool(pv, n)[source]¶
Return a True/False vector of length n where the True values are located according to pv.
Examples
>>> import numpy as np >>> from pyyeti import locate >>> pv = np.array([0, 3, 5]) >>> locate.index2bool(pv, 8) array([ True, False, False, True, False, True, False, False], dtype=bool)