ProductSpace.one¶
-
ProductSpace.
one
(self)[source]¶ Create the one element of the product space.
The i-th component of the product space one element is the one element of the i-th space in the product.
- Parameters
- None
- Returns
- oneProductSpaceElement
The one element in the product space.
Examples
>>> r2, r3 = odl.rn(2), odl.rn(3) >>> one_2, one_3 = r2.one(), r3.one() >>> r2x3 = ProductSpace(r2, r3) >>> one_2x3 = r2x3.one() >>> one_2 == one_2x3[0] True >>> one_3 == one_2x3[1] True