fb9275731bbc0bea7beb59e0d83c662537c27b8c,geomstats/special_orthogonal_group.py,,skew_matrix_from_vector,#Any#,34
Before Change
assert len(vec) == 3
skew_mat = np.array([[0, -vec[2], vec[1]],
[vec[2], 0, -vec[0]],
[-vec[1], vec[0], 0]])
return skew_mat
After Change
vec = np.expand_dims(vec, axis=0)
skew_mat = np.zeros([vec.shape[0], vec.shape[1], vec.shape[1]])
skew_mat[:] = np.cross(np.array([[1., 0., 0.],
[0., 1., 0.],
[0., 0., 1.]]),
vec[:])
return skew_mat
def vector_from_skew_matrix(skew_mat):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: geomstats/geomstats
Commit Name: fb9275731bbc0bea7beb59e0d83c662537c27b8c
Time: 2018-01-31
Author: ninamio78@gmail.com
File Name: geomstats/special_orthogonal_group.py
Class Name:
Method Name: skew_matrix_from_vector
Project Name: geomstats/geomstats
Commit Name: 3cc9e1cfd039c5986c9ab4e1dfe3fa2d627a7d0a
Time: 2018-02-02
Author: ninamio78@gmail.com
File Name: geomstats/special_orthogonal_group.py
Class Name:
Method Name: skew_matrix_from_vector
Project Name: rodluger/starry
Commit Name: d2fac82b91d24d62956d632597cc373492ded456
Time: 2019-04-20
Author: rodluger@gmail.com
File Name: starry/Map/pymap.py
Class Name: PythonMapBase
Method Name: render