FNFT
fnft__kdv_discretization.h
Go to the documentation of this file.
1 /*
2  * This file is part of FNFT.
3  *
4  * FNFT is free software; you can redistribute it and/or
5  * modify it under the terms of the version 2 of the GNU General
6  * Public License as published by the Free Software Foundation.
7  *
8  * FNFT is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Contributors:
17  * Sander Wahls (TU Delft) 2017-2018.
18  * Shrinivas Chimmalgi (TU Delft) 2017.
19  * Peter J. Prins (TU Delft) 2018.
20  */
21 
28 #ifndef FNFT__KDV_DISCRETIZATION_H
29 #define FNFT__KDV_DISCRETIZATION_H
30 
33 
34 
49  discretization);
50 
66 
67 
84  fnft__akns_discretization_t * const akns_discretization);
85 
86 
106 FNFT_INT fnft__kdv_lambda_to_z(const FNFT_UINT n, const FNFT_REAL eps_t,
107  FNFT_COMPLEX * const vals, fnft_kdv_discretization_t discretization);
108 
128 FNFT_INT fnft__kdv_z_to_lambda(const FNFT_UINT n, const FNFT_REAL eps_t,
129  FNFT_COMPLEX * const vals, fnft_kdv_discretization_t discretization);
130 
131 
132 #ifdef FNFT_ENABLE_SHORT_NAMES
133 #define kdv_discretization_degree(...) fnft__kdv_discretization_degree(__VA_ARGS__)
134 #define kdv_discretization_boundary_coeff(...) fnft__kdv_discretization_boundary_coeff(__VA_ARGS__)
135 #define kdv_discretization_to_akns_discretization(...) fnft__kdv_discretization_to_akns_discretization(__VA_ARGS__)
136 #define kdv_lambda_to_z(...) fnft__kdv_lambda_to_z(__VA_ARGS__)
137 #define kdv_z_to_lambda(...) fnft__kdv_z_to_lambda(__VA_ARGS__)
138 #endif
139 
140 #endif
fnft_kdv_discretization_t.h
Lists discretizations for the Korteweg-de Vries equation.
FNFT_INT
int32_t FNFT_INT
Definition: fnft_numtypes.h:56
FNFT_UINT
size_t FNFT_UINT
Definition: fnft_numtypes.h:62
fnft__kdv_z_to_lambda
FNFT_INT fnft__kdv_z_to_lambda(const FNFT_UINT n, const FNFT_REAL eps_t, FNFT_COMPLEX *const vals, fnft_kdv_discretization_t discretization)
This routine maps z from the discrete-time domain to lambda in the continuous-time domain based on th...
fnft__kdv_lambda_to_z
FNFT_INT fnft__kdv_lambda_to_z(const FNFT_UINT n, const FNFT_REAL eps_t, FNFT_COMPLEX *const vals, fnft_kdv_discretization_t discretization)
This routine maps lambda from continuous-time domain to z in the discrete-time domain based on the di...
fnft_kdv_discretization_t
fnft_kdv_discretization_t
Enum that specifies discretizations used to compute nonlinear Fourier transforms for the Korteweg-de ...
Definition: fnft_kdv_discretization_t.h:92
fnft__akns_discretization.h
Properties of the discretizations for the Korteweg-de Vries equation.
FNFT_COMPLEX
double complex FNFT_COMPLEX
Definition: fnft_numtypes.h:47
FNFT_REAL
double FNFT_REAL
Definition: fnft_numtypes.h:40
fnft__akns_discretization_t
fnft__akns_discretization_t
Enum that specifies discretizations used to compute nonlinear Fourier transforms of systems that fit ...
Definition: fnft__akns_discretization_t.h:100
fnft__kdv_discretization_degree
FNFT_UINT fnft__kdv_discretization_degree(fnft_kdv_discretization_t discretization)
This routine returns the max degree d of the polynomials in a single scattering matrix or zero if the...
fnft__kdv_discretization_to_akns_discretization
FNFT_INT fnft__kdv_discretization_to_akns_discretization(fnft_kdv_discretization_t kdv_discretization, fnft__akns_discretization_t *const akns_discretization)
This routine returns akns discretization related to the given kdv discretization.
fnft__kdv_discretization_boundary_coeff
FNFT_REAL fnft__kdv_discretization_boundary_coeff(fnft_kdv_discretization_t discretization)
This routine returns the boundary coefficient based on the discretization.