8b2b198d2c78141155fd830a3e9c705ffbb6d6af,scipy/sparse/linalg/interface.py,LinearOperator,__pow__,#LinearOperator#Any#,224

Before Change


                    res = fun(res)
                return res

            return LinearOperator(shape=self.shape,
                         matvec=lambda y: power(y, self.matvec),
                         rmatvec=lambda y: power(y, self.rmatvec),
                         matmat=lambda y: power(y, self.matmat),
                         dtype=self._get_dtype())
        else:
            return NotImplemented

    def __add__(self, x):

After Change


            return NotImplemented

    def __pow__(self, p):
        return _PowerLinearOperator(self, p)

    def __add__(self, x):
        return _SumLinearOperator(self, x)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scipy/scipy
Commit Name: 8b2b198d2c78141155fd830a3e9c705ffbb6d6af
Time: 2013-08-18
Author: gaul@web-yard.de
File Name: scipy/sparse/linalg/interface.py
Class Name: LinearOperator
Method Name: __pow__


Project Name: scipy/scipy
Commit Name: 8b2b198d2c78141155fd830a3e9c705ffbb6d6af
Time: 2013-08-18
Author: gaul@web-yard.de
File Name: scipy/sparse/linalg/interface.py
Class Name: LinearOperator
Method Name: __add__


Project Name: scipy/scipy
Commit Name: 8b2b198d2c78141155fd830a3e9c705ffbb6d6af
Time: 2013-08-18
Author: gaul@web-yard.de
File Name: scipy/sparse/linalg/interface.py
Class Name: LinearOperator
Method Name: __rmul__