31 int nTerms = 0.5 * (
p_ + 1) * (2 *
p_ + 2);
45 for (
int j = 0;
j <=
p_;
j++)
47 for (
int k = -
j;
k <=
j;
k++)
49 std::complex<Mdouble> result = {0.0, 0.0};
50 int location =
j *
j + (
k +
j);
51 for (
int n =
j;
n <=
p_;
n++)
53 for (
int m = (
k -
j +
n);
m <= (
k -
n +
j);
m++)
55 int location_O =
n *
n + (
m +
n);
56 int location_A1 = (
n -
j) * (
n -
j) + ((
m -
k) + (
n -
j));
57 int location_A2 = location;
58 int location_Y = location_A1;
59 int location_A3 = location_O;
74 translatedLocalExpansionCoefficients[location] = result;
77 return translatedLocalExpansionCoefficients;
AnnoyingScalar abs(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:135
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11
double Mdouble
Definition: GeneralDefine.h:13
JacobiRotation< float > J
Definition: Jacobi_makeJacobi.cpp:3
Definition: NumericalVector.h:44
RealScalar alpha
Definition: level1_cplx_impl.h:151
int * m
Definition: level2_cplx_impl.h:294
Scalar beta
Definition: level2_cplx_impl.h:36
char char char int int * k
Definition: level2_impl.h:374
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 pow(const bfloat16 &a, const bfloat16 &b)
Definition: BFloat16.h:625
const std::complex< Mdouble > i
Definition: ExtendedMath.h:31
Definition: ExtendedMath.h:180
NumericalVector< std::complex< Mdouble > > sphericalHarmonics(int p, Mdouble theta, Mdouble phi)
Definition: ExtendedMath.cc:424
std::ptrdiff_t j
Definition: tut_arithmetic_redux_minmax.cpp:2