|
SpECTRE
v2026.06.09.01
|
A wrapper class for the spherical harmonic library collocation data. More...
#include <SwshCollocation.hpp>
Classes | |
| class | CollocationConstIterator |
Public Member Functions | |
| CollocationMetadata (size_t l_max) | |
| Generates the libsharp collocation information and stores it in geom_info_. | |
| ~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. | |
Static Public Attributes | |
| static constexpr ComplexRepresentation | complex_representation |
| The representation of the block of complex values, which sets the stride inside the libsharp type. | |
A wrapper class for the spherical harmonic library collocation data.
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
| 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. |
|
explicit |
Generates the libsharp collocation information and stores it in geom_info_.
|
staticconstexpr |
The representation of the block of complex values, which sets the stride inside the libsharp type.