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: x (float | int) → bool x (value[Any]) → value[int] x (vector[Any]) → vector[int] x (tensor[Any]) → tensor[int] x (array[Any]) → array[int] x (ArrayType[Any]) → ArrayType[int] Parameters: x (Any) – Number, copapy value, vector, tensor or array Returns: x as bool