MCPcopy Create free account
hub / github.com/apache/fory / bool_array

Function bool_array

benchmarks/python/benchmark.py:92–93  ·  view source on GitHub ↗
(values: Iterable[bool])

Source from the content-addressed store, hash-verified

90
91
92def bool_array(values: Iterable[bool]) -> np.ndarray:
93 return np.array(list(values), dtype=np.bool_)
94
95
96class Player(IntEnum):

Callers 2

create_sampleFunction · 0.85
from_pb_sampleFunction · 0.85

Calls 2

listFunction · 0.50
arrayMethod · 0.45

Tested by

no test coverage detected