(self)
return tran
Returns the transposed SparseMatrix of this SparseMatrix.

        Examples
        ========

        >>> from sympy.matrices import SparseMatrix
        >>> a = SparseMatrix(((1, 2), (3, 4)))
        >>> a
        Matrix([
        [1, 2],
        [3, 4]])
        >>> a.T
        Matrix([
        [1, 3],
        [2, 4]])
Returns the transposed SparseMatrix of this SparseMatrix.
Returns the transposed SparseMatrix of this SparseMatrix .
def _eval_transpose(self):
        """Returns the transposed SparseMatrix of this SparseMatrix.

        Examples
        ========

        >>> from sympy.matrices import SparseMatrix
        >>> a = SparseMatrix(((1, 2), (3, 4)))
        >>> a
        Matrix([
        [1, 2],
        [3, 4]])
        >>> a.T
        Matrix([
        [1, 3],
        [2, 4]])
        """
        tran = self.zeros(self.cols, self.rows)
        for key, value in self._smat.items():
            key = key[1], key[0]  # reverse
            tran._smat[key] = value
        return tran
def _eval_transpose ( self ) : tran = self . zeros ( self . cols , self . rows ) for key , value in self . _smat . items ( ) : key = key [ 1 ] , key [ 0 ] # reverse tran . _smat [ key ] = value return tran