Skip to content

Commit

Permalink
merged weak_pde_library, but saved this time
Browse files Browse the repository at this point in the history
  • Loading branch information
znicolaou committed Apr 25, 2022
1 parent f445942 commit 6fe1299
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions pysindy/feature_library/weak_pde_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,6 @@ def transform(self, x):
j2 = np.where(np.all(derivs == derivs_pure, axis=1))[0][
0
]
<<<<<<< HEAD
# Calculate the integral by taking the dot product
# of the weights and data x_k over each axis.
# Integration by parts gives power of (-1).
Expand All @@ -1001,21 +1000,6 @@ def transform(self, x):
),
)
* np.product(binom(derivs_mixed, deriv))
=======
# weighted sum for product rule term
integral[k] = integral[k] + (-1) ** (
np.sum(derivs_mixed)
) * np.tensordot(
weights,
self.dfx_k_j[k][j1][..., np.newaxis]
* self.dx_k_j[k][j2][..., np.newaxis, :],
axes=(
tuple(np.arange(self.grid_ndim)),
tuple(np.arange(self.grid_ndim)),
),
) * np.product(
binom(derivs_mixed, deriv)
>>>>>>> 75a7b2ba30b7de1cc01b9b551083aeef2ccb64df
)
# collect the results
for n in range(n_features):
Expand Down

0 comments on commit 6fe1299

Please sign in to comment.