copapy.to_bool#

copapy.to_bool(x)#

Convert a number, a copapy value or the elements of a vector, tensor or array to bool: True for all values other than zero.

Overloads:
Parameters:

x (Any) – Number, copapy value, vector, tensor or array

Returns:

x as bool