b3ccad280a3b615ad33c5f15c35d9325b8d3a5be,liegroups/torch/_base.py,SpecialEuclideanBase,is_valid_matrix,#Any#Any#,341

Before Change


            shape_check.fill_(True)

        // Bottom row should be [zeros, 1]
        bottom_row = mat.__class__(cls.dim).zero_()
        bottom_row[-1] = 1.
        bottom_check = (mat[:, cls.dim - 1, :] == bottom_row.unsqueeze_(
            dim=0).expand(mat.shape[0], cls.dim)).sum(dim=1) == cls.dim

After Change


            shape_check.fill_(True)

        // Bottom row should be [zeros, 1]
        bottom_row = mat.new_zeros(cls.dim)
        bottom_row[-1] = 1.
        bottom_check = (mat[:, cls.dim - 1, :] == bottom_row.unsqueeze_(
            dim=0).expand(mat.shape[0], cls.dim)).sum(dim=1) == cls.dim
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: utiasSTARS/liegroups
Commit Name: b3ccad280a3b615ad33c5f15c35d9325b8d3a5be
Time: 2018-12-16
Author: valentinp@gmail.com
File Name: liegroups/torch/_base.py
Class Name: SpecialEuclideanBase
Method Name: is_valid_matrix


Project Name: utiasSTARS/liegroups
Commit Name: b3ccad280a3b615ad33c5f15c35d9325b8d3a5be
Time: 2018-12-16
Author: valentinp@gmail.com
File Name: liegroups/torch/se2.py
Class Name: SE2
Method Name: wedge


Project Name: utiasSTARS/liegroups
Commit Name: b3ccad280a3b615ad33c5f15c35d9325b8d3a5be
Time: 2018-12-16
Author: valentinp@gmail.com
File Name: liegroups/torch/_base.py
Class Name: SpecialEuclideanBase
Method Name: as_matrix


Project Name: utiasSTARS/liegroups
Commit Name: b3ccad280a3b615ad33c5f15c35d9325b8d3a5be
Time: 2018-12-16
Author: valentinp@gmail.com
File Name: liegroups/torch/so2.py
Class Name: SO2
Method Name: wedge


Project Name: utiasSTARS/liegroups
Commit Name: b3ccad280a3b615ad33c5f15c35d9325b8d3a5be
Time: 2018-12-16
Author: valentinp@gmail.com
File Name: liegroups/torch/se2.py
Class Name: SE2
Method Name: adjoint