__bool__¶
- array.__bool__() bool¶
Converts a zero-dimensional boolean array to a Python
boolobject.- Parameters:
self (array) – zero-dimensional array instance. Must have a boolean data type.
- Returns:
out (bool) – a Python
boolobject representing the single element of the array.