SpECTRE
v2025.03.17
|
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_ . 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 | |
double | phi (size_t offset) const |
Retrieve the | |
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. More... | |
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_
.
l_max
collocation set more than once, it is probably better to use the precomputed_spherical_harmonic_collocation
function
|
staticconstexpr |
The representation of the block of complex values, which sets the stride inside the libsharp type.