Function rusty_green_kernel::kernels::helmholtz_kernel[][src]

pub fn helmholtz_kernel<T: RealType>(
    target: ArrayView1<'_, T>,
    sources: ArrayView2<'_, T>,
    result_real: ArrayViewMut2<'_, T>,
    result_imag: ArrayViewMut2<'_, T>,
    wavenumber: Complex<f64>,
    eval_mode: &EvalMode
)

Evaluation of the Helmholtz kernel for a single target and many sources.

The type T is either f32 or f64.

Arguments

  • target - An array with 3 elements containing the target point.
  • sources - An array of shape (3, nsources) cotaining the source points.
  • result_real - If eval_mode is equal to Value an array of shape (1, nsources) that contains the real part of the Green’s function values between the target and the sources.
  • result__imag - If eval_mode is equal to Value an array of shape (1, nsources) that contains the imaginary part of the Green’s function values between the target and the sources.
  • wavenumber - The wavenumber k of the Helmholtz kernel.
  • eval_mode - The Evaluation Mode. Either Value if only the values of the Green’s function are requested, or ValueGrad if both the value and derivatives are requested.