Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Bharath2 authored May 15, 2024
1 parent ea3698b commit e7672e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ilqr/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def sympy_to_numba(f, args, redu = True):
if n == 1: f = f.T
f = sp.Array(f)[0, :]
f = njit(sp.lambdify(args, f, modules = modules))
f_new = lambda *args: np.array(f(*args))
f_new = lambda *args: np.asarray(f(*args))
return njit(f_new)

f = sp.lambdify(args, f, modules = modules)
Expand Down

0 comments on commit e7672e0

Please sign in to comment.