'Return a new matrix with subs applied to each entry.
Examples
>>> from sympy.abc import x, y
>>> from sympy.matrices import SparseMatrix, Matrix
>>> SparseMatrix(1, 1, [x])
Matrix([[x]])
>>> _.subs(x, y)
Matrix([[y]])
>>> Matrix(_).subs(y, x)
Matrix([[x]])'

def subs(self, *args, **kwargs):

    return self.applyfunc((lambda x: x.subs(*args, **kwargs)))
