gfx ~master (2021-03-28T16:54:18Z)
Dub
Repo
scalarApproxRel
gfx
math
approx
Check whether the relative error between a and b is smaller than maxEps
template
scalarApproxRel
(T)
pure @
safe
@
nogc
nothrow
bool
scalarApproxRel
(
in
T
a
,
in
T
b
,
in
T
maxEps
= 4 *
T.epsilon
)
if
(
isFloatingPoint
!
T
)
Members
Functions
scalarApproxRel
bool
scalarApproxRel
(T a, T b, T maxEps)
Undocumented in source. Be warned that the author may not have intended to support it.
Meta
Source
See Implementation
gfx
math
approx
aliases
approxRel
approxRelAndAbs
approxUlp
approxUlpAndAbs
enums
ApproxMethod
functions
approx
templates
scalarApproxRel
scalarApproxRelAndAbs
scalarApproxUlp
scalarApproxUlpAndAbs
ulpDiff
Check whether the relative error between a and b is smaller than maxEps