SetIntersection.__contains__¶
- SetIntersection.__contains__(other)[source]¶
Return
other in self
.- Returns:
- containsbool
True
ifother
is a member of all subsets,False
otherwise.
Examples
>>> reals, complexnrs = odl.RealNumbers(), odl.ComplexNumbers() >>> intersection = odl.SetIntersection(reals, complexnrs) >>> 1.0 in intersection True >>> 1.0j in intersection False