v0.14.0
Loading...
Searching...
No Matches
Static Public Member Functions | Static Public Attributes | List of all members
HenckyOps::isEq Struct Reference

#include <users_modules/tutorials/vec-2/src/HenckyOps.hpp>

Collaboration diagram for HenckyOps::isEq:
[legend]

Static Public Member Functions

static auto check (const double &a, const double &b)
 

Static Public Attributes

static double absMax = 1
 

Detailed Description

Definition at line 19 of file HenckyOps.hpp.

Member Function Documentation

◆ check()

static auto HenckyOps::isEq::check ( const double a,
const double b 
)
inlinestatic

Definition at line 20 of file HenckyOps.hpp.

20 {
21 return std::abs(a - b) / absMax < eps;
22 }
constexpr double eps
Definition: HenckyOps.hpp:13
static double absMax
Definition: HenckyOps.hpp:23

Member Data Documentation

◆ absMax

double HenckyOps::isEq::absMax = 1
static

Definition at line 23 of file HenckyOps.hpp.


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