ProductSpace.__contains__

ProductSpace.__contains__(self, other)

Return other in self.

Returns
containsbool

True if other is a LinearSpaceElement instance and other.space is equal to this space, False otherwise.

Notes

This is the strict default where spaces must be equal. Subclasses may choose to implement a less strict check.