ProductSpaceElement.shape¶
-
property
ProductSpaceElement.
shape
¶ Number of values per axis in
self
, computed recursively.The recursion ends at the fist level that does not have a shape.
- Raises
- ValueError
If a
ProductSpace
is encountered that is not a power space.
See also
Examples
>>> r4_3 = odl.ProductSpace(odl.rn(4), 3) >>> x = r4_3.element() >>> x.shape (3, 4) >>> r4_2_3 = odl.ProductSpace(r4_3, 2) >>> y = r4_2_3.element() >>> y.shape (2, 3, 4)