Function rusty_green_kernel::kernels::laplace_kernel [−][src]
pub fn laplace_kernel<T: RealType>(
target: ArrayView1<'_, T>,
sources: ArrayView2<'_, T>,
result: ArrayViewMut2<'_, T>,
eval_mode: &EvalMode
)
Evaluation of the Laplace 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 toValue
an array of shape (1, nsources) that contains the values of the Green’s function between the target and the sources.eval_mode
- The Evaluation Mode. EitherValue
if only the values of the Green’s function are requested, orValueGrad
if both the value and derivatives are requested.