d496aaefc795e176b615815e9f30f335860f013b,geomstats/special_euclidean_group.py,SpecialEuclideanGroup,random_uniform,#SpecialEuclideanGroup#,254
Before Change
// TODO(nina): uniformly w.r.t. which measure? i
// Add in riemannian metrics.
random_rot_vec = np.random.rand(3) * 2 - 1
random_rot_vec = self.rotations.regularize(random_rot_vec)
random_translation = np.random.rand(3) * 2 - 1
random_transfo = np.concatenate([random_rot_vec, random_translation])
After Change
the euclidean space.
random_rot_vec = self.rotations.random_uniform()
random_translation = self.translations.random_uniform()
random_transfo = np.concatenate([random_rot_vec, random_translation])
return random_transfo
def exponential_matrix(self, rot_vec, epsilon=1e-5):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: geomstats/geomstats
Commit Name: d496aaefc795e176b615815e9f30f335860f013b
Time: 2018-01-22
Author: ninamio78@gmail.com
File Name: geomstats/special_euclidean_group.py
Class Name: SpecialEuclideanGroup
Method Name: random_uniform
Project Name: geomstats/geomstats
Commit Name: 799482ae65d0b186fd6323c7631fb11797803cbe
Time: 2018-05-03
Author: ninamio78@gmail.com
File Name: tests/test_hyperbolic_space.py
Class Name: TestHyperbolicSpaceMethods
Method Name: test_exp_vectorization
Project Name: geomstats/geomstats
Commit Name: cdd7ca5632d3466ea02efcd6696420c18a32e9ae
Time: 2021-03-17
Author: nicolas.guigui@inria.fr
File Name: tests/test_stiefel.py
Class Name: TestStiefel
Method Name: test_log_vectorization_shape