(self)
return len(self.args) - 1
Returns the rank of the Indexed object.

        Examples
        ========

        >>> from sympy.tensor import Indexed, Idx
        >>> from sympy import symbols
        >>> i, j, k, l, m = symbols('i:m', cls=Idx)
        >>> Indexed('A', i, j).rank
        2
        >>> q = Indexed('A', i, j, k, l, m)
        >>> q.rank
        5
        >>> q.rank == len(q.indices)
        True
Returns the rank of the Indexed object.
Returns the rank of the Indexed object .
def rank(self):
        """
        Returns the rank of the Indexed object.

        Examples
        ========

        >>> from sympy.tensor import Indexed, Idx
        >>> from sympy import symbols
        >>> i, j, k, l, m = symbols('i:m', cls=Idx)
        >>> Indexed('A', i, j).rank
        2
        >>> q = Indexed('A', i, j, k, l, m)
        >>> q.rank
        5
        >>> q.rank == len(q.indices)
        True

        """
        return len(self.args) - 1
def rank ( self ) : return len ( self . args ) - 1