SpECTRE
v2025.01.30
|
A utility for evaluating a particular spin-weighted spherical harmonic function at arbitrary points. More...
#include <SwshInterpolation.hpp>
Public Member Functions | |
SpinWeightedSphericalHarmonic (int spin, size_t l, int m) | |
void | evaluate (gsl::not_null< ComplexDataVector * > result, const DataVector &theta, const DataVector &phi, const DataVector &sin_theta_over_2, const DataVector &cos_theta_over_2) const |
ComplexDataVector | evaluate (const DataVector &theta, const DataVector &phi, const DataVector &sin_theta_over_2, const DataVector &cos_theta_over_2) const |
Return by value the spin-weighted spherical harmonic evaluated at theta and phi . More... | |
std::complex< double > | evaluate (double theta, double phi) const |
Return by value the spin-weighted spherical harmonic evaluated at theta and phi . | |
void | pup (PUP::er &p) |
Serialization for Charm++. | |
A utility for evaluating a particular spin-weighted spherical harmonic function at arbitrary points.
SwshInterpolator
. ComplexDataVector Spectral::Swsh::SpinWeightedSphericalHarmonic::evaluate | ( | const DataVector & | theta, |
const DataVector & | phi, | ||
const DataVector & | sin_theta_over_2, | ||
const DataVector & | cos_theta_over_2 | ||
) | const |
Return by value the spin-weighted spherical harmonic evaluated at theta
and phi
.
The additional values sin_theta_over_2
and cos_theta_over_2
, representing
void Spectral::Swsh::SpinWeightedSphericalHarmonic::evaluate | ( | gsl::not_null< ComplexDataVector * > | result, |
const DataVector & | theta, | ||
const DataVector & | phi, | ||
const DataVector & | sin_theta_over_2, | ||
const DataVector & | cos_theta_over_2 | ||
) | const |
Return by pointer the values of the spin-weighted spherical harmonic evaluated at theta
and phi
.
The additional values sin_theta_over_2
and cos_theta_over_2
, representing
The formula we evaluate (with various prefactors precomputed, cached, and optimized from the factorials) is [84]