Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrine committed Feb 12, 2019
1 parent 823671a commit 3973338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geoopt/manifolds/stiefel.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,6 @@ def _inner(self, x, u, v):

def _retr(self, x, u, t):
q, r = linalg.batch_linalg.qr(x + u * t)
unflip = linalg.batch_linalg.extract_diag(r).sign().add(.5).sign()
unflip = linalg.batch_linalg.extract_diag(r).sign().add(0.5).sign()
q *= unflip[..., None, :]
return q

0 comments on commit 3973338

Please sign in to comment.