Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrine committed Mar 2, 2019
1 parent 7fc3669 commit 8a815e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/plots/extended/poincare/distance2plane.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
dist2 = xx ** 2 + yy ** 2
mask = dist2 <= radius ** 2
grid = np.stack([xx, yy], axis=-1)
dists = pmath.dist2plane(torch.from_numpy(grid).float(), v, x)
dists = pmath.dist2plane(torch.from_numpy(grid).float(), x, v)
dists[(~mask).nonzero()] = np.nan
circle = plt.Circle((0, 0), 1, fill=False, color="b")
plt.gca().add_artist(circle)
Expand Down
4 changes: 2 additions & 2 deletions geoopt/manifolds/poincare/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ def mobius_fn(x, *args, c=1.0, **kwargs):
return mobius_fn


def dist2plane(x, a, p, *, c=1.0, keepdim=False, signed=False):
def dist2plane(x, p, a, *, c=1.0, keepdim=False, signed=False):
r"""
Distance from :math:`x` to a hyperbolic hyperplane in Poincare ball
that is orthogonal to :math:`a` and contains :math:`p`.
Expand Down Expand Up @@ -1028,7 +1028,7 @@ def dist2plane(x, a, p, *, c=1.0, keepdim=False, signed=False):
x : tensor
point on poincare ball
a : tensor
point on poincare ball, that is orthogonal to hyperplane
vector on tangent space of :math:`p`
p : tensor
point on poincare ball lying on the hyperplane
c : float|tensor
Expand Down

0 comments on commit 8a815e8

Please sign in to comment.