specfem::utilities::Band¶
-
template<typename T>
struct Band A closed frequency/period band [min, max] parameterised by unit type.
The converting constructor accepts values in any unit that has a registered
specfem::units::unit_castspecialisation, so you can write e.g.and the conversion to angular frequency is applied automatically.Band<Omega>{some_seconds_value, another_seconds_value}
- Template Parameters:
T – Unit type of the stored bounds (e.g.
specfem::units::Omega).
Public Functions
- template<typename U> requires (!std::is_same_v< T, U >) const expr Band(U lo
Converting constructor: accepts two bounds in a different unit
Uand converts toT. Bounds are swapped when the conversion is monotone-decreasing (e.g. period→omega) so the result satisfies min ≤ max.