36bf1cd036d852d10b189727d43fee6ee0b6c66c,geomstats/geometry/special_euclidean.py,SpecialEuclidean,random_uniform,#SpecialEuclidean#Any#Any#,613

Before Change


        elif point_type == "matrix":
            raise NotImplementedError()

        random_transfo = self.regularize(random_transfo, point_type=point_type)
        return random_transfo

    def exponential_matrix(self, rot_vec):
        Compute exponential of rotation matrix represented by rot_vec.

After Change


        elif point_type == "matrix":
            random_rotation = self.rotations.random_uniform(
                n_samples, point_type=point_type)
            if n_samples == 1:
                random_translation = gs.to_ndarray(
                    gs.transpose(random_translation), to_ndim=3)
            else:
                random_translation = gs.transpose(gs.to_ndarray(
                    random_translation, to_ndim=3))
            random_point = gs.concatenate(
                (random_rotation, random_translation), axis=2)
            last_line = gs.zeros((n_samples, 1, self.n + 1))
            random_point = gs.concatenate(
                (random_point, last_line), axis=1)
            random_point = gs.assignment(random_point, 1, (-1, -1), axis=0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: geomstats/geomstats
Commit Name: 36bf1cd036d852d10b189727d43fee6ee0b6c66c
Time: 2020-04-02
Author: 62605255+pchauchat@users.noreply.github.com
File Name: geomstats/geometry/special_euclidean.py
Class Name: SpecialEuclidean
Method Name: random_uniform


Project Name: geomstats/geomstats
Commit Name: f6cd92e81fb74c95ad847960df50b6bdbdada11d
Time: 2018-11-19
Author: ninamio78@gmail.com
File Name: geomstats/lie_group.py
Class Name: LieGroup
Method Name: group_log


Project Name: geomstats/geomstats
Commit Name: ff6548ca9c13442a4fe343fabb48ca4c796edc01
Time: 2018-11-21
Author: ninamio78@gmail.com
File Name: geomstats/lie_group.py
Class Name: LieGroup
Method Name: group_log