ProductSpaceElement.ndim¶
-
property
ProductSpaceElement.
ndim
¶ Number axes in
self
, computed recursively.- 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.ndim 2 >>> r4_2_3 = odl.ProductSpace(r4_3, 2) >>> y = r4_2_3.element() >>> y.ndim 3