3763f47d3ef6543c0b12ab0e08213baad5f63153,geomstats/geometry/hyperbolic_space.py,HyperbolicMetric,exp,#HyperbolicMetric#Any#Any#,521
Before Change
elif self.point_type == "ball":
norm_base_point = base_point.norm(2,
-1, keepdim=True).expand_as(
base_point)
After Change
elif self.point_type == "ball":
norm_base_point = gs.to_ndarray(gs.norm(base_point, -1), 2, -1)
norm_base_point = gs.repeat(norm_base_point,
base_point.shape[-1], -1)
den = 1 - norm_base_point**2
norm_tan = gs.to_ndarray(gs.norm(tangent_vec, -1), 2, -1)
norm_tan = gs.repeat(norm_tan, base_point.shape[-1], -1)
lambda_base_point = 1 / den
direction = tangent_vec / norm_tan
factor = gs.tanh(lambda_base_point * norm_tan)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: geomstats/geomstats
Commit Name: 3763f47d3ef6543c0b12ab0e08213baad5f63153
Time: 2020-01-17
Author: thomas.l.p.gerald@gmail.com
File Name: geomstats/geometry/hyperbolic_space.py
Class Name: HyperbolicMetric
Method Name: exp
Project Name: scipy/scipy
Commit Name: 717574963807f796866f0ecc129e58b611346b46
Time: 2015-08-14
Author: n59_ru@hotmail.com
File Name: scipy/optimize/_lsq/trf.py
Class Name:
Method Name: trf
Project Name: scipy/scipy
Commit Name: 717574963807f796866f0ecc129e58b611346b46
Time: 2015-08-14
Author: n59_ru@hotmail.com
File Name: scipy/optimize/_lsq/dogbox.py
Class Name:
Method Name: dogbox