SetIntersection.__contains__

SetIntersection.__contains__(self, other)[source]

Return other in self.

Returns
containsbool

True if other 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