namespace sph#

Overview#

Functions used for spherical harmonics. More…

namespace sph {
 
// global functions
 
std::vector<std::complex<double>> spheriHarmo(int orderL, std::array<double, 2> radialCoord);
void spheriHarmoInto(int orderL, std::array<double, 2> radialCoord, std::vector<std::complex<double>>& out);
std::array<double, 2> radialCoord(std::array<double, 3> cartCoord);
std::vector<std::complex<double>> lookupTableQ3Vec(std::array<double, 2> angles);
std::complex<double> lookupTableQ3(int m, std::array<double, 2> angles);
std::vector<std::complex<double>> lookupTableQ4Vec(std::array<double, 2> angles);
std::complex<double> lookupTableQ4(int m, std::array<double, 2> angles);
std::vector<std::complex<double>> lookupTableQ6Vec(std::array<double, 2> angles);
std::vector<std::complex<double>> lookupTableQ8Vec(std::array<double, 2> angles);
std::complex<double> lookupTableQ8(int m, std::array<double, 2> angles);
std::complex<double> lookupTableQ6(int m, std::array<double, 2> angles);
 
} // namespace sph

Detailed Documentation#

Functions used for spherical harmonics.

The recommended function for calculating the spherical-harmonics based complex vector is sph::spheriHarmo. This function uses the Boost libraries.

Changelog#

Global Functions#

void spheriHarmoInto(int orderL, std::array<double, 2> radialCoord, std::vector<std::complex<double>>& out)

Fill out with Y_lm, m = -l .. +l. Reuses out capacity.

std::vector<std::complex<double>> lookupTableQ3Vec(std::array<double, 2> angles)

Lookup table for Q3.

std::complex<double> lookupTableQ3(int m, std::array<double, 2> angles)

Lookup table for Q3 (m=0 to m=6).

std::vector<std::complex<double>> lookupTableQ4Vec(std::array<double, 2> angles)

Lookup table for Q4.

std::complex<double> lookupTableQ4(int m, std::array<double, 2> angles)

Lookup table for Q4 (m=0 to m=8).

std::vector<std::complex<double>> lookupTableQ6Vec(std::array<double, 2> angles)

Lookup table for Q6.

std::vector<std::complex<double>> lookupTableQ8Vec(std::array<double, 2> angles)

Lookup table for Q8.

std::complex<double> lookupTableQ8(int m, std::array<double, 2> angles)

Lookup table for Q8 (m=0 to m=16).

std::complex<double> lookupTableQ6(int m, std::array<double, 2> angles)

Lookup table for Q6 (m=0 to m=12).