MCPcopy Create free account
hub / github.com/apache/arrow / FloatingEquality

Method FloatingEquality

cpp/src/arrow/compare.cc:86–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84template <typename T, typename Flags>
85struct FloatingEquality {
86 explicit FloatingEquality(const EqualOptions& options)
87 : epsilon(static_cast<T>(options.atol().value_or(-1))),
88 ulp_distance(options.ulp_distance().value_or(-1)) {}
89
90 bool operator()(T x, T y) const {
91 if (x == y) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected