(self)
Returns the size of the leading dimension of self.

        Returns:
            int: The size of the leading dimension.
Returns the size of the leading dimension of self.
Returns the size of the leading dimension of self .
def __len__(self):
        """
        Returns the size of the leading dimension of self.

        Returns:
            int: The size of the leading dimension.
        """
        if len(self.shape):
            return self.shape[0]
        else:
            return 0
def __len__ ( self ) : if len ( self . shape ) : return self . shape [ 0 ] else : return 0