Fnft kdvv inverse#83
Open
ffischer7 wants to merge 130 commits into
Open
Conversation
added 30 commits
August 17, 2023 11:09
… xi=0, which is required for the periodic KdV-NFT
…ples are there. Documentation and tests are still missing.
…rror for xi=0, which is required for the periodic KdV-NFT" This reverts commit e23be7e.
…DES_MODULI_FREQS, which now also returns nonlinear frequencies. Added some improvised workarounds for that kdv_scatter_* fails at lambda=0.
…dated matlab example 1 to also show alpha_21(E)
…or the main spectrum because it leaves the Floquet discriminant intact, but is not as easy with the aux spectrum because it changes al21(E) in a non-trivial manner (even though the aux spectrum itself is only shifted as well). Thus, only shifting for the problematic grid point close or equal to zero induces jumps in al21(E), which can lead to spurios aux spectrum points. It would be possible to shift the signal for all samples, but I now opted for the simpler option of just skipping the one problematic grid point (essentially this means temporarily doubling eps_E).
…eal and not complex
…trum, possibility to skip computation of sheet_indices and aux_spec
… on suspected undersampling
…he nonlinear spectrum manually (spec_size)
…the later line 'if (E_ref < FNFT_INF)'
…pen bands into separate functions
…d got their own mex files
…in fnft_kdvv_inverse. As a conseqeunce, adapt checks vor valid inputs and add E_INVALID_ARGUMENT_MSG as error code, which can handle descriptive error messages.
…cated storage needs to be declared before the first potential jump to leave_fun
…t_kdvv_inverse requires eigenvalues in descending order due to a recently change.
… analytic signal for two x-values.
…nce of rounded intermediate results
…nto fnft_kdvv_inverse
… fnft_kdvv_inverse. Therefore the constant THRESHOLD_EQUALITY_BOUND_STATES is introduced.
…e to failed test at linux computer
…nto fnft_kdvv_inverse
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding inverse kdvv functionality. This includes also tests, mexfiles for matlab usage and examples. The code is documented with doxygen.