Skip to content

Commit

Permalink
Merge pull request #8302 from nschloe/float-onenorm_matrix_power_nn
Browse files Browse the repository at this point in the history
MAINT: make sure _onenorm_matrix_power_nnm actually returns a float
  • Loading branch information
rgommers committed Jan 19, 2018
2 parents b94ebfa + c500c7c commit 7c3c968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scipy/sparse/linalg/matfuncs.py
Expand Up @@ -105,7 +105,7 @@ def _onenorm_matrix_power_nnm(A, p):
M = A.T
for i in range(p):
v = M.dot(v)
return max(v)
return np.max(v)


def _onenorm(A):
Expand Down

0 comments on commit 7c3c968

Please sign in to comment.