d4c0d404adac1a135f1aa2114d156fb8b3395265,tests/test_special_orthogonal_group.py,TestSpecialOrthogonalGroupMethods,test_regularize,#TestSpecialOrthogonalGroupMethods#,210
Before Change
result = group.regularize(point)
expected = - (new_angle / angle) * point_initial
self.assertTrue(gs.allclose(result, expected),
"angle_type = {}\n"
"point = {}\n"
"angle = {}\n"
"new_angle = {}\n"
"result = {}\n"
"norm(result) = {}\n"
"expected = {}\n"
"norm(expected) = {}".format(
angle_type,
point,
angle,
new_angle,
result,
gs.linalg.norm(result),
expected,
gs.linalg.norm(expected)))
angle_type = "with_angle_2pi"
point = self.elements[3][angle_type]
result = group.regularize(point)
After Change
self.assertAllClose(result, expected)
else:
angle = 0.345
point = gs.array([[
[gs.cos(angle), -gs.sin(angle)],
[gs.sin(angle), gs.cos(angle)]]])
result = group.regularize(point)
expected = point
self.assertAllClose(result, expected)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: geomstats/geomstats
Commit Name: d4c0d404adac1a135f1aa2114d156fb8b3395265
Time: 2018-12-26
Author: ninamio78@gmail.com
File Name: tests/test_special_orthogonal_group.py
Class Name: TestSpecialOrthogonalGroupMethods
Method Name: test_regularize
Project Name: geomstats/geomstats
Commit Name: d4c0d404adac1a135f1aa2114d156fb8b3395265
Time: 2018-12-26
Author: ninamio78@gmail.com
File Name: tests/test_special_orthogonal_group.py
Class Name: TestSpecialOrthogonalGroupMethods
Method Name: test_compose_and_inverse
Project Name: apache/incubator-mxnet
Commit Name: 95f5cc60904a2d88d4861fff0f6dbad15f8cdbe3
Time: 2020-10-06
Author: zhaoqizhu96@gmail.com
File Name: tests/nightly/test_np_large_array.py
Class Name:
Method Name: test_blackman