def __len__(self):
"""Returns the number of values handled by the :class:`MultiParameter`
instance. It is required, that the `shape` has been set beforehand,
which specifies the length in each dimension.
"""
return numpy.cumprod(self.shape)[-1]
评论列表
文章目录