Skip to content

Commit cf0d1ed

Browse files
committed
Minor corrections/additions to documentation.
1 parent 2467348 commit cf0d1ed

7 files changed

Lines changed: 35 additions & 12 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# FNFT: Fast Nonlinear Fourier Transforms
22

3-
![Version](https://img.shields.io/github/v/release/FastNFT/FNFT) [![Documentation](https://img.shields.io/badge/-documentation-informational)](https://fastnft.github.io/FNFT/) [![Build Status](https://travis-ci.org/FastNFT/FNFT.svg?branch=master)](https://travis-ci.org/FastNFT/FNFT) [![DOI](http://joss.theoj.org/papers/10.21105/joss.00597/status.svg)](https://doi.org/10.21105/joss.00597)
3+
[![Version](https://img.shields.io/github/v/release/FastNFT/FNFT)](https://github.com/FastNFT/FNFT/releases) [![Documentation](https://img.shields.io/badge/-documentation-informational)](https://fastnft.github.io/FNFT/) [![Build Status](https://travis-ci.org/FastNFT/FNFT.svg?branch=master)](https://travis-ci.org/FastNFT/FNFT) [![DOI](http://joss.theoj.org/papers/10.21105/joss.00597/status.svg)](https://doi.org/10.21105/joss.00597)
44

55
FNFT is a software library for the numerical computation of (inverse) nonlinear Fourier transforms, which are also known as (inverse) scattering transforms. The focus of the library is on fast algorithms, but it also contains non-fast methods. FNFT is written in C and comes with a MATLAB interface. A [Python interface](https://github.com/xmhk/FNFTpy) is available separately.
66

include/fnft.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* The C interface is separated into a public part ("fnft_" prefix) and a private
3838
* part ("fnft__" prefix).
3939
*
40-
* To get start with the public part of the C interface, study the modules
40+
* To get started with the public part of the C interface, study the modules
4141
* \ref fnft and \ref fnft_inverse, and try the examples in the examples
4242
* directory.
4343
*/

include/fnft_nsep.h

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,16 +189,38 @@ fnft_nsep_opts_t fnft_nsep_default_opts();
189189
* - Prins and Wahls, <a href="https://doi.org/10.1109/ICASSP.2018.8461708">&quot;Higher order exponential splittings for the fast non-linear Fourier transform of the KdV equation,&quot;</a>in Proc.ICASSP 2018, Calgary, AB, 2018, pp. 4524-4528.
190190
* - Mertsching, <a href="https://doi.org/10.1002/prop.2190350704">&quot; Quasiperiodie Solutions of the Nonlinear Schrödinger Equation,&quot;</a> Fortschr. Phys. 35:519-536, 1987.
191191
*
192+
* * The routine supports the following discretizations of type \link fnft_nse_discretization_t \endlink:
193+
* - fnft_nse_discretization_2SPLIT1A
194+
* - fnft_nse_discretization_2SPLIT1B
195+
* - fnft_nse_discretization_2SPLIT2A
196+
* - fnft_nse_discretization_2SPLIT2B
197+
* - fnft_nse_discretization_2SPLIT2S
198+
* - fnft_nse_discretization_2SPLIT2_MODAL
199+
* - fnft_nse_discretization_2SPLIT3A
200+
* - fnft_nse_discretization_2SPLIT3B
201+
* - fnft_nse_discretization_2SPLIT3S
202+
* - fnft_nse_discretization_2SPLIT4A
203+
* - fnft_nse_discretization_2SPLIT4B
204+
* - fnft_nse_discretization_2SPLIT5A
205+
* - fnft_nse_discretization_2SPLIT5B
206+
* - fnft_nse_discretization_2SPLIT6A
207+
* - fnft_nse_discretization_2SPLIT6B
208+
* - fnft_nse_discretization_2SPLIT7A
209+
* - fnft_nse_discretization_2SPLIT7B
210+
* - fnft_nse_discretization_2SPLIT8A
211+
* - fnft_nse_discretization_2SPLIT8B
212+
* - fnft_nse_discretization_4SPLIT4A
213+
*
192214
* @param[in] D Number of samples. Has to be even.
193215
* @param[in] q Array of length D, contains samples \f$ q(t_n)=q(x_0, t_n) \f$,
194216
* where \f$ t_n = T[0] + n*L/D \f$, where \f$L=T[1]-T[0]\f$ is the period and
195217
* \f$n=0,1,\dots,D-1\f$, of the to-be-transformed signal in ascending order
196218
* (i.e., \f$ q(t_0), q(t_1), \dots, q(t_{D-1}) \f$)
197219
* @param[in] T Array of length 2. T[0] is the position in time of the first
198-
* sample. T[2] is the beginning of the next period. (The location of the last
199-
* sample is thus t_{D-1}=T[1]-L/D.) It should be T[0]<T[1].
220+
* sample. T[1] is the beginning of the next period. (The location of the last
221+
* sample is thus \f$t_{D-1}=T[1]-L/D\f$.) It should be \f$T[0]<T[1]\f$.
200222
* @param[in] phase_shift Real scalar constant. It is the change in the phase
201-
* over one quasi-period, arg(q(t+L)/q(t)). For periodic signals it will be 0.
223+
* over one quasi-period,\f$ arg(q(t+L)/q(t))\f$. For periodic signals it will be 0.
202224
* @param[in,out] K_ptr Upon entry, *K_ptr should contain the length of the array
203225
* main_spec. Upon return, *K_ptr contains the number of actually detected
204226
* points in the main spectrum. If the length of the array main_spec was not

matlab/mex_fnft_nsep.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
% 2nd degree polynomial.
5858
% 'quiet' Turns off messages generated by then FNFT C library.
5959
% (To turn off the messages generated by the mex
60-
% interface functions, use Matlab's warning and error
60+
% interface functions, use MATLAB's warning and error
6161
% commands instead.)
6262
%
6363
% OUTPUTS

matlab/mex_fnft_nsev.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@
2222
% desired value, a positive integer.
2323
% 'bsloc_fasteigen' Use fast eigenvalue method to locate bound states.
2424
% This method is very reliable, but requires O(D^2)
25-
% flops. This input is not followed by a value.
25+
% FLOPs. This input is not followed by a value.
2626
% 'bsloc_newton' Use Newton's method to locate bound states. This method
2727
% is reliable if good intial guesses for the bound states
2828
% are known. Followed by a complex row vector of K
29-
% initial guesses. It requires O(niter KD) flops.
29+
% initial guesses. It requires O(niter KD) FLOPs.
3030
% 'bsloc_subsamp_refine' Use a mixed method to locate bound states. First
3131
% get initial guesses for the bound states by applying
3232
% the 'fasteigen' method to a subsampled version of the
3333
% signal. Then refine using 'Newton' based on the full
3434
% signal. This method is reliable if D is not too low.
35-
% It requires O(D log^2 D + niter K D) flops if Dsub (see
35+
% It requires O(D log^2 D + niter K D) FLOPs if Dsub (see
3636
% below) is set by the algorithm. Not followed by a
3737
% value.
3838
% 'bsloc_niter' Number of iterations to be carried by Newton's method.
@@ -85,7 +85,7 @@
8585
% 'skip_nc' Skip computation of the norming constants.
8686
% 'quiet' Turns off messages generated by then FNFT C library.
8787
% (To turn off the messages generated by the mex
88-
% interface functions, use Matlab's warning and error
88+
% interface functions, use MATLAB's warning and error
8989
% commands instead.)
9090
%
9191
% OUTPUTS

matlab/mex_fnft_nsev_inverse.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
% which q(t) is given.
6666
% 'quiet' Turns off messages generated by then FNFT C library.
6767
% (To turn off the messages generated by the mex
68-
% interface functions, use Matlab's warning and error
68+
% interface functions, use MATLAB's warning and error
6969
% commands instead.)
7070
%
7171
% OUTPUTS

matlab/mex_fnft_nsev_inverse_XI.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
% [XI xi] = MEX_FNFT_NSEV_XI(D, T, M);
55
%
66
% DESCRIPTION
7-
% Provides an interface to the C routine fnft_nsev_inverse.
7+
% Provides an interface to the function fnft_nsev_inverse_XI
8+
% in the C routine fnft_nsev_inverse.
89
%
910
% INPUTS
1011
% D Real scalar, must be a positive power of two

0 commit comments

Comments
 (0)