(self)
return self.rows*self.cols
Return the number of elements of self.

        Implemented mainly so bool(Matrix()) == False.
Return the number of elements of self.
Return the number of elements of self .
def __len__(self):
        """Return the number of elements of self.

        Implemented mainly so bool(Matrix()) == False.
        """
        return self.rows*self.cols
def __len__ ( self ) : return self . rows * self . cols