Skip to content

Commit

Permalink
Return ndarray
Browse files Browse the repository at this point in the history
  • Loading branch information
unnonouno committed Jun 20, 2017
1 parent a48f9e4 commit d486764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cupy/linalg/norms.py
Expand Up @@ -229,8 +229,8 @@ def _slogdet_one(a):
sign = (non_zero % 2) * -2 + 1
logdet = cupy.log(abs(diag)).sum()
else:
sign = dtype.type(0.0)
logdet = dtype.type('-inf')
sign = cupy.array(0.0, dtype=dtype)
logdet = cupy.array(float('-inf'), dtype)

return sign, logdet

Expand Down

0 comments on commit d486764

Please sign in to comment.