gfx ~meson (2022-03-26T21:27:26.8342465)
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