TensorSpace.shape¶
-
property
TensorSpace.
shape
¶ Number of scalar elements per axis.
Note
If
dtype
has a shape, we add it to the left of the givenshape
in the class creation. This is in contrast to NumPy, which adds extra axes to the right. We do this since we usually want to represent discretizations of vector- or tensor-valued functions by this, i.e., ifdtype.shape == (3,)
we expectf[0]
to have shapeshape
.