NiHu  2.0
NiHu::laplace_kernel< space_2d< scalar > > Class Template Reference

Kernel of the 2d Laplace equation. More...

#include <laplace_kernel.hpp>

Public Member Functions

template<unsigned order>
void eval (scalar r, scalar *f) const
 Evaluate the kernel and its derivatives. More...
 

Detailed Description

template<class scalar>
class NiHu::laplace_kernel< space_2d< scalar > >

Kernel of the 2d Laplace equation.

Template Parameters
scalarThe space scalar type

Definition at line 94 of file laplace_kernel.hpp.

Member Function Documentation

◆ eval()

template<class scalar >
template<unsigned order>
void NiHu::laplace_kernel< space_2d< scalar > >::eval ( scalar  r,
scalar f 
) const
inline

Evaluate the kernel and its derivatives.

Template Parameters
orderThe derivative index
Parameters
[in]rThe distance parameter
[out]fAllocated space for the results
  • For order = 0 the kernel \( G(r) \) is computed.
  • For order = 1 \( G'(r) \) is computed.
  • For order = 2 f[0] = \( G'' - G'/r \), f[1] = \( G'(r)/r \).

Definition at line 138 of file laplace_kernel.hpp.


The documentation for this class was generated from the following file: