SpECTRE  v2024.04.12
EqualWithinRoundoffImpls::EqualWithinRoundoffImpl< Lhs, Rhs, typename > Struct Template Reference

Specialize this class to add support for the equal_within_roundoff function. More...

Detailed Description

template<typename Lhs, typename Rhs, typename = std::nullptr_t>
struct EqualWithinRoundoffImpls::EqualWithinRoundoffImpl< Lhs, Rhs, typename >

Specialize this class to add support for the equal_within_roundoff function.

Ensure the Lhs and Rhs are symmetric. A specialization must implement a static apply function with this signature:

static bool apply(const Lhs& lhs, const Rhs& rhs, const double eps,
const double scale);
auto apply(F &&f, const ObservationBox< ComputeTagsList, DataBoxType > &observation_box, Args &&... args)
Apply the function object f using its nested argument_tags list of tags.
Definition: ObservationBox.hpp:238

It can be helpful to invoke the equal_within_roundoff function for floating points from within your specialization.


The documentation for this struct was generated from the following file: