From 1d183b943fc7daa65aa8c60255d2d5c1e456cd9f Mon Sep 17 00:00:00 2001 From: ShihChi Date: Mon, 24 Oct 2022 10:55:32 -0400 Subject: [PATCH] Update PL_unsym tensor in trapping_sr3.py Correct the indexing of projection tensor PL_unsym. --- pysindy/optimizers/trapping_sr3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysindy/optimizers/trapping_sr3.py b/pysindy/optimizers/trapping_sr3.py index d4d9bca7b..231f797dc 100644 --- a/pysindy/optimizers/trapping_sr3.py +++ b/pysindy/optimizers/trapping_sr3.py @@ -341,7 +341,7 @@ def _set_Ptensors(self, r): for j in range(r): for k in range(r): for kk in range(N): - if i == kk and j == k: + if i == k and j == kk: PL_tensor_unsym[i, j, k, kk] = 1.0 # Now symmetrize PL