ProductSpace.__eq__¶
- ProductSpace.__eq__(other)[source]¶
Return
self == other
.- Returns:
- equalsbool
True
ifother
is aProductSpace
instance, has the same length and the same factors.False
otherwise.
Examples
>>> r2, r3 = odl.rn(2), odl.rn(3) >>> rn, rm = odl.rn(2), odl.rn(3) >>> r2x3, rnxm = ProductSpace(r2, r3), ProductSpace(rn, rm) >>> r2x3 == rnxm True >>> r3x2 = ProductSpace(r3, r2) >>> r2x3 == r3x2 False >>> r5 = ProductSpace(*[odl.rn(1)]*5) >>> r2x3 == r5 False >>> r5 = odl.rn(5) >>> r2x3 == r5 False