Skip to content

Commit

Permalink
fix missing variable reference
Browse files Browse the repository at this point in the history
  • Loading branch information
JarronL committed Mar 26, 2020
1 parent 27d77ea commit ca8a08e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynrc/maths/fast_poly.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def jl_poly(xvals, coeff, dim_reorder=False, use_legendre=False):
if use_legendre:
# Use Identity matrix to evaluate each polynomial component
lx = 2*xvals/xvals[-1] - 1
xfan = legendre.legval(lx, np.identity(deg+1))
xfan = legendre.legval(lx, np.identity(dim[0]))
else:
# Create an array of exponent values
parr = np.arange(dim[0], dtype='float')
Expand Down

0 comments on commit ca8a08e

Please sign in to comment.