pub fn compute_sve_with<K: ExpandableKernel>(
kernel: K,
options: &SVEOptions,
) -> Result<SVEResult, Error>Expand description
The SVE of kernel with options
A centrosymmetric kernel (ReducedKernel) is block-diagonalized into
its even and odd reduced kernels, whose singular functions have definite
parity, unless SVEOptions::full_domain is set; any other kernel is
expanded over its full domain [xmin, xmax] × [ymin, ymax]. The working
precision is chosen from the accuracy unless SVEOptions::twork sets
it. compute_sve takes the most common options as arguments.
§Errors
Error::InvalidParameterif the accuracy is not in (0, 1), the cutoff is not in [0, 1], or the maximum number of singular values is 0; checked before any workError::NonFiniteInputif the discretized kernel has a NaN or infinite entry (e.g. a kernel value that overflows)Error::DecompositionFailedif an SVD fails
§FPU State Warning
This function checks for dangerous FPU settings (Flush-to-Zero and
Denormals-Are-Zero) that can cause incorrect results. If detected, it
temporarily corrects the FPU state and prints a warning. If you see this
warning, add -fp-model precise flag when compiling with Intel Fortran.