Skip to content

Commit

Permalink
matfuncs.py: style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rngantner authored and pv committed May 11, 2012
1 parent cb21665 commit 4194ee9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scipy/linalg/matfuncs.py
Expand Up @@ -19,6 +19,7 @@
from decomp import eig
from decomp_svd import orth, svd
from decomp_schur import schur, rsf2csf
import warnings

eps = np.finfo(float).eps
feps = np.finfo(single).eps
Expand All @@ -40,7 +41,7 @@ def expm(A, q=False):
Exponential Revisited", Nicholas Higham, 2005.
"""
if q: print "argument q=... in scipy.linalg.expm is deprecated."
if q: warnings.warn("argument q=... in scipy.linalg.expm is deprecated.")
A = asarray(A)
A_L1 = norm(A,1)
n_squarings = 0
Expand Down Expand Up @@ -70,8 +71,7 @@ def expm(A, q=False):
A = A / 2**n_squarings
U,V = _pade7(A)
else:
print "invalid type!",A.dtype
return
raise ValueError("invalid type: "+str(A.dtype))

P = U + V # p_m(A) : numerator
Q = -U + V # q_m(A) : denominator
Expand Down

0 comments on commit 4194ee9

Please sign in to comment.