|
| CollocationMetadata (size_t l_max) |
| Generates the libsharp collocation information and stores it in geom_info_ . More...
|
|
| ~CollocationMetadata ()=default |
| default constructor required for iterator use
|
|
| CollocationMetadata (const CollocationMetadata &)=default |
|
| CollocationMetadata (CollocationMetadata &&)=default |
|
CollocationMetadata & | operator= (CollocationMetadata &)=default |
|
CollocationMetadata & | operator= (CollocationMetadata &&)=default |
|
sharp_geom_info * | get_sharp_geom_info () const |
| retrieve the sharp_geom_info* stored. This should largely be used only for passing to other libsharp functions. Otherwise, access elements through iterator or access functions.
|
|
double | theta (size_t offset) const |
| Retrieve the \(\theta\) value for a given index in a libsharp-compatible array.
|
|
double | phi (size_t offset) const |
| Retrieve the \(\phi\) value for a given index in a libsharp-compatible array.
|
|
constexpr size_t | l_max () const |
|
constexpr size_t | size () const |
| Compute the number of entries the libsharp-compatible data structure should have.
|
|
|
CollocationMetadata< Representation >::CollocationConstIterator | begin () const |
| Get a bidirectional iterator to the start of the grid. operator* for that iterator gives a LibsharpCollocationPoint with members offset , theta , and phi
|
|
CollocationMetadata< Representation >::CollocationConstIterator | cbegin () const |
| Get a bidirectional iterator to the start of the grid. operator* for that iterator gives a LibsharpCollocationPoint with members offset , theta , and phi
|
|
|
CollocationMetadata< Representation >::CollocationConstIterator | end () const |
| Get a bidirectional iterator to the end of the grid. operator* for that iterator gives a LibsharpCollocationPoint with members offset , theta , and phi
|
|
CollocationMetadata< Representation >::CollocationConstIterator | cend () const |
| Get a bidirectional iterator to the end of the grid. operator* for that iterator gives a LibsharpCollocationPoint with members offset , theta , and phi
|
|
template<
ComplexRepresentation Representation>
class Spectral::Swsh::CollocationMetadata< Representation >
A wrapper class for the spherical harmonic library collocation data.
Details
The currently chosen library for spin-weighted spherical harmonic transforms is libsharp. The CollocationMetadata
class stores the libsharp sharp_geom_info
object, which contains data about
- The angular collocation points used in spin-weighted spherical harmonic transforms
- The memory representation of double-type values at those collocation points
- Template Parameters
-
Representation | the ComplexRepresentation, either ComplexRepresentation::Interleaved or ComplexRepresentation::RealsThenImags compatible with the generated CollocationMetadata - this is necessary because the stored libsharp type contains memory stride information. |