From 9f97efb34825d6d5cb2c0b1fdb6c2d54c49f55ca Mon Sep 17 00:00:00 2001 From: Isuru Fernando <isuruf@gmail.com> Date: Mon, 29 Jan 2018 12:56:29 -0600 Subject: [PATCH] Fix coeff_matrix --- sumpy/expansion/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sumpy/expansion/__init__.py b/sumpy/expansion/__init__.py index d43379a6..f4144a86 100644 --- a/sumpy/expansion/__init__.py +++ b/sumpy/expansion/__init__.py @@ -420,7 +420,7 @@ class NewLinearRecurrenceBasedDerivativeWrangler \ for i in range(s.shape[0]): for j in range(s.shape[1]): if np.abs(s[i][j]) > tol: - coeff_matrix[i].append((j, s[i][j])) + coeff_matrix[j].append((i, s[i][j])) logger.debug("computing recurrence for Taylor coefficients: " "done after {dur:.2f} seconds" -- GitLab