cf.Data.__bool__

Data.__bool__()[source]

Truth value testing and the built-in operation bool

x.__bool__() <==> bool(x)

Performance

__bool__ causes all delayed operations to be computed.

Examples

>>> bool(cf.Data(1.5))
True
>>> bool(cf.Data([[False]]))
False