VM2D 1.14
Vortex methods for 2D flows simulation
Loading...
Searching...
No Matches
fmm::detail::m2lcoef_wrapper< N > Struct Template Reference

#include <special_functions.h>

Collaboration diagram for fmm::detail::m2lcoef_wrapper< N >:

Public Member Functions

constexpr m2lcoef_wrapper ()
 

Public Attributes

std::array< double, N *(N+1) *(N+2)/2+1 > m2lcoef
 

Detailed Description

template<int N>
struct fmm::detail::m2lcoef_wrapper< N >

Definition at line 119 of file special_functions.h.

Constructor & Destructor Documentation

◆ m2lcoef_wrapper()

template<int N>
constexpr fmm::detail::m2lcoef_wrapper< N >::m2lcoef_wrapper ( )
inlineconstexpr

Definition at line 122 of file special_functions.h.

122 : m2lcoef()
123 {
124 for (int j = 0; j < N; ++j)
125 {
126 for (int k = 0; k <= j; ++k)
127 {
128 for (int n = k; n < N; ++n)
129 {
130 int idx = N * (j + 2) * (j + 1) / 2 + N * (k + 1) + n + 1;
131 m2lcoef[idx] = Anm(n, k) * Anm(j, k) * ni(n + k) / Anm(j + n, 0);
132 }
133 }
134 }
135 }
constexpr anm_wrapper< _3d_MAX_MULTIPOLE_NUM > Anm
constexpr double ni(int n)
Definition simple_math.h:99
std::array< double, N *(N+1) *(N+2)/2+1 > m2lcoef
Here is the call graph for this function:

Member Data Documentation

◆ m2lcoef

template<int N>
std::array<double, N * (N + 1) * (N + 2) / 2 + 1> fmm::detail::m2lcoef_wrapper< N >::m2lcoef

Definition at line 121 of file special_functions.h.


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