ProductSpace.size¶
-
property
ProductSpace.
size
¶ Total number of involved spaces, computed recursively.
The recursion ends at the fist level that does not comprise a power space, i.e., which is not made of equal spaces.
Examples
>>> r2, r3 = odl.rn(2), odl.rn(3) >>> pspace = odl.ProductSpace(r2, r3) >>> pspace.size 2 >>> pspace2 = odl.ProductSpace(pspace, 3) >>> pspace2.size 6