Replaced method with a static function

master
Per A Brodtkorb 8 years ago
parent e3aa08a140
commit 435a6e99a2

@ -32,7 +32,8 @@ class PolyBasis(object):
def eval(t, c): def eval(t, c):
return polynomial.polyval(t, c) return polynomial.polyval(t, c)
def _coefficients(self, k): @staticmethod
def _coefficients(k):
c = np.zeros(k + 1) c = np.zeros(k + 1)
c[k] = 1 c[k] = 1
return c return c

Loading…
Cancel
Save