FNFT_INT fnft__akns_scatter_matrix(const UINT D, COMPLEX const *const q, COMPLEX const *const r, const REAL eps_t, const UINT K, COMPLEX const *const lambda, COMPLEX *const result, akns_discretization_t discretization)
Computes the scattering matrix and its derivative.