@@ -359,7 +359,7 @@ def __init__(self, x):
359359 alpha = 1 if gamma == 0 else gamma / xnorm
360360 else :
361361 sigma = numpy .linalg .norm (v [1 :], 2 )
362- xnorm = numpy .sqrt (numpy .abs (gamma ) ** 2 + sigma ** 2 )
362+ xnorm = numpy .sqrt (numpy .abs (gamma ) ** 2 + sigma ** 2 )
363363
364364 # is x the multiple of first unit vector?
365365 if sigma == 0 :
@@ -376,7 +376,7 @@ def __init__(self, x):
376376 alpha = - gamma / numpy .abs (gamma )
377377
378378 self .xnorm = xnorm
379- self .v = v / numpy .sqrt (numpy .abs (v [0 ]) ** 2 + sigma ** 2 )
379+ self .v = v / numpy .sqrt (numpy .abs (v [0 ]) ** 2 + sigma ** 2 )
380380 self .alpha = alpha
381381 self .beta = beta
382382
@@ -771,7 +771,7 @@ def angles(F, G, ip_B=None, compute_vectors=False):
771771 else :
772772 Y , s , Z = scipy .linalg .svd (inner (QF , QG , ip_B = ip_B ))
773773 Vcos = numpy .dot (QG , Z .T .conj ())
774- n_large = numpy .flatnonzero ((s ** 2 ) < 0.5 ).shape [0 ]
774+ n_large = numpy .flatnonzero ((s ** 2 ) < 0.5 ).shape [0 ]
775775 n_small = s .shape [0 ] - n_large
776776 theta = numpy .hstack (
777777 [
@@ -1913,7 +1913,7 @@ def __init__(self, evals, exclude_zeros=False):
19131913
19141914 def eval_step (self , step ):
19151915 """Evaluate bound for given step."""
1916- return 2 * self .base ** step
1916+ return 2 * self .base ** step
19171917
19181918 def get_step (self , tol ):
19191919 """Return step at which bound falls below tolerance."""
@@ -2003,7 +2003,7 @@ def eval_step(self, step):
20032003 return 2 * self .base ** numpy .floor (step / 2.0 )
20042004
20052005 def get_step (self , tol ):
2006- """Return step at which bound falls below tolerance. """
2006+ """Return step at which bound falls below tolerance."""
20072007 return 2 * numpy .log (tol / 2.0 ) / numpy .log (self .base )
20082008
20092009
0 commit comments