From e7672e0e53ac8bf3cd70c61814c8fd06b9e5d3e6 Mon Sep 17 00:00:00 2001 From: Bharath chandra Date: Wed, 15 May 2024 09:38:17 -0700 Subject: [PATCH] Update utils.py --- ilqr/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ilqr/utils.py b/ilqr/utils.py index 9cc7060..1c83673 100644 --- a/ilqr/utils.py +++ b/ilqr/utils.py @@ -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)