Skip to content

Commit

Permalink
Merge pull request dynamicslab#143 from znicolaou/pde_optimization
Browse files Browse the repository at this point in the history
Update spectral_derivative.py
  • Loading branch information
akaptano authored Dec 18, 2021
2 parents 8718295 + b93bc74 commit e4fc3aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pysindy/differentiation/spectral_derivative.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
from .base import BaseDifferentiation

class SpectralDerivative(BaseDifferentiation):
"""Spectral derivatives. Assumes uniform grid, and utilizes FFT to approximate a derivative.
"""Spectral derivatives.
Assumes uniform grid, and utilizes FFT to approximate a derivative.
Works well for derivatives in periodic dimensions.
Equivalent to a maximal-order finite difference, but runs in O(NlogN).
Expand Down

0 comments on commit e4fc3aa

Please sign in to comment.