FNFT
Loading...
Searching...
No Matches
Functions

Computes the polynomial approximation of the combined scattering matrix. More...

#include "fnft__kdv_discretization.h"
#include "fnft__akns_fscatter.h"
Include dependency graph for fnft__kdv_fscatter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

FNFT_UINT fnft__kdv_fscatter_numel (FNFT_UINT D, fnft_kdv_discretization_t discretization)
 Returns the length of transfer_matrix to be allocated based on the number of samples and discretization.
 
FNFT_INT fnft__kdv_fscatter (const FNFT_UINT D, FNFT_COMPLEX const *const q, FNFT_COMPLEX const *const r, const FNFT_REAL eps_t, const FNFT_INT kappa, FNFT_COMPLEX *const result, FNFT_UINT *const deg_ptr, FNFT_INT *const W_ptr, fnft_kdv_discretization_t const discretization)
 Fast computation of polynomial approximation of the combined scattering matrix.
 

Detailed Description

Computes the polynomial approximation of the combined scattering matrix.

Function Documentation

◆ fnft__kdv_fscatter_numel()

FNFT_UINT fnft__kdv_fscatter_numel ( FNFT_UINT  D,
fnft_kdv_discretization_t  discretization 
)

Returns the length of transfer_matrix to be allocated based on the number of samples and discretization.

This routine returns the length 4*D*(kdv_discretization_degree(discretization) + 1) to be allocated based on the number of samples and discretization of type discretization.

Parameters
[in]DNumber of samples.
[in]discretizationType of discretization from fnft_kdv_discretization_t.
Returns
Returns the length to be allocated. Returns 0 for unknown discretizations.