(self, other)
return self.scalar_multiply(other)
Multiply self and other, watching for non-matrix entities.

        When multiplying be a non-sparse matrix, the result is no longer
        sparse.

        Examples
        ========

        >>> from sympy.matrices import SparseMatrix, eye, zeros
        >>> I = SparseMatrix(eye(3))
        >>> I*I == I
        True
        >>> Z = zeros(3)
        >>> I*Z
        Matrix([
        [0, 0, 0],
        [0, 0, 0],
        [0, 0, 0]])
        >>> I*2 == 2*I
        True
Multiply self and other, watching for non-matrix entities.
Multiply self and other watching for non - matrix entities .
def __mul__(self, other):
        """Multiply self and other, watching for non-matrix entities.

        When multiplying be a non-sparse matrix, the result is no longer
        sparse.

        Examples
        ========

        >>> from sympy.matrices import SparseMatrix, eye, zeros
        >>> I = SparseMatrix(eye(3))
        >>> I*I == I
        True
        >>> Z = zeros(3)
        >>> I*Z
        Matrix([
        [0, 0, 0],
        [0, 0, 0],
        [0, 0, 0]])
        >>> I*2 == 2*I
        True
        """
        if isinstance(other, SparseMatrix):
            return self.multiply(other)
        if isinstance(other, MatrixBase):
            return other._new(self*self._new(other))
        return self.scalar_multiply(other)
def __mul__ ( self , other ) : if isinstance ( other , SparseMatrix ) : return self . multiply ( other ) if isinstance ( other , MatrixBase ) : return other . _new ( self * self . _new ( other ) ) return self . scalar_multiply ( other )