253bdcbb4f20c5045e248caafae956d50ea223db,gpytorch/lazy/toeplitz_lazy_variable.py,ToeplitzLazyVariable,mul,#ToeplitzLazyVariable#Any#,145

Before Change


                raise RuntimeError("Can only multiply two ToeplitzLazyVariables if they correspond to the same grid.")
            if self.J_left is not None:
                if other.J_left is None:
                    raise RuntimeError("Cannot multiply interpolated ToeplitzLazyVariables by non-interpolated ones.")
                if not (approx_equal(self.C_left, other.C_left) and approx_equal(self.C_right, other.C_right)):
                    raise RuntimeError("Cannot multiply two ToeplitzLazyVariables with different",
                                       "left interpolation matrices.")
            if self.added_diag is not None or other.added_diag is not None:

After Change


                return MulLazyVariable(self, other)
            return ToeplitzLazyVariable(self.c.mul(other.c), self.J_left, self.C_left,
                                        self.J_right, self.C_right, None)
        elif isinstance(other, LazyVariable):
            return MulLazyVariable(self, other)
        else:
            return ToeplitzLazyVariable(self.c.mul(other), self.J_left, self.C_left,
                                        self.J_right, self.C_right, self.added_diag)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: 253bdcbb4f20c5045e248caafae956d50ea223db
Time: 2017-09-20
Author: ruihan.wu14@gmail.com
File Name: gpytorch/lazy/toeplitz_lazy_variable.py
Class Name: ToeplitzLazyVariable
Method Name: mul


Project Name: vatlab/SoS
Commit Name: 6f9d9f18865ac204c93c61029ec9efb129869709
Time: 2017-03-03
Author: ben.bog@gmail.com
File Name: sos/sos_step.py
Class Name: Base_Step_Executor
Method Name: expand_input_files


Project Name: vatlab/SoS
Commit Name: 6f9d9f18865ac204c93c61029ec9efb129869709
Time: 2017-03-03
Author: ben.bog@gmail.com
File Name: sos/sos_step.py
Class Name: Base_Step_Executor
Method Name: expand_depends_files