Skip to content

Commit

Permalink
MAINT: skip copy=False for det and logdet
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbrc committed May 22, 2015
1 parent 177067a commit 464e767
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions numpy/linalg/linalg.py
Expand Up @@ -1696,7 +1696,7 @@ def slogdet(a):
real_t = _realType(result_t)
signature = 'D->Dd' if isComplexType(t) else 'd->dd'
sign, logdet = _umath_linalg.slogdet(a, signature=signature)
return sign.astype(result_t, copy=False), logdet.astype(real_t, copy=False)
return sign.astype(result_t), logdet.astype(real_t)

def det(a):
"""
Expand Down Expand Up @@ -1751,8 +1751,7 @@ def det(a):
t, result_t = _commonType(a)
signature = 'D->D' if isComplexType(t) else 'd->d'
r = _umath_linalg.det(a, signature=signature)
print(type(r))
return r.astype(result_t, copy=False)
return r.astype(result_t)

# Linear Least Squares

Expand Down

0 comments on commit 464e767

Please sign in to comment.