SpECTRE
v2025.01.30
|
A container for libsharp metadata for the spin-weighted spherical harmonics modal representation. More...
#include <SwshCoefficients.hpp>
Classes | |
class | CoefficientsIndexIterator |
An iterator for easily traversing a libsharp-compatible spin-weighted spherical harmonic modal representation. The operator*() returns a LibsharpCoefficientInfo , which contains two offsets, transform_of_real_part_offset and transform_of_imag_part_offset , and the l_max , l and m associated with the values at those offsets. More... | |
Public Member Functions | |
CoefficientsMetadata (size_t l_max) | |
CoefficientsMetadata (const CoefficientsMetadata &)=delete | |
CoefficientsMetadata (CoefficientsMetadata &&)=default | |
CoefficientsMetadata & | operator= (const CoefficientsMetadata &)=delete |
CoefficientsMetadata & | operator= (CoefficientsMetadata &&)=default |
sharp_alm_info * | get_sharp_alm_info () const |
size_t | l_max () const |
size_t | size () const |
returns the number of (complex) entries in a libsharp-compatible coefficients vector. This includes the factor of 2 associated with needing to store both the transform of the real and imaginary parts, so is the full size of the result of a libsharp swsh transform. | |
CoefficientsMetadata::CoefficientsIndexIterator | begin () const |
Get a bidirectional iterator to the start of the series of modes. | |
CoefficientsMetadata::CoefficientsIndexIterator | cbegin () const |
Get a bidirectional iterator to the start of the series of modes. | |
CoefficientsMetadata::CoefficientsIndexIterator | end () const |
Get a bidirectional iterator to the end of the series of modes. | |
CoefficientsMetadata::CoefficientsIndexIterator | cend () const |
Get a bidirectional iterator to the end of the series of modes. | |
A container for libsharp metadata for the spin-weighted spherical harmonics modal representation.
The CoefficientsMetadata class acts as a memory-safe container for a sharp_alm_info*
, required for use of libsharp transform utilities. The libsharp utilities are currently constructed to only provide user functions with collocation data for spin-weighted functions and derivatives. This class also provides an iterator for easily traversing a libsharp-compatible modal representation.