Function rusty_green_kernel::kernels::modified_helmholtz_kernel[][src]

pub fn modified_helmholtz_kernel<T: RealType>(
    target: ArrayView1<'_, T>,
    sources: ArrayView2<'_, T>,
    result: ArrayViewMut2<'_, T>,
    omega: f64,
    eval_mode: &EvalMode
)

Evaluation of the modified 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 - If eval_mode is equal to Value an array of shape (1, nsources) that contains the values of the Green’s function between the target and the sources.
  • omega - The omega parameter of the modified 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.