Platform-specific code, to try to minimise reader conditionals in the rest of the codebase.
Platform-specific code, to try to minimise reader conditionals in the rest of the codebase.
(bit-diff-double f1 f2)
Difference between two doubles in ULPs (i.e. number of representable numbers between them + 1).
Difference between two doubles in ULPs (i.e. number of representable numbers between them + 1).
(bit-diff-float f1 f2)
Difference between two floats in ULPs (i.e. number of representable numbers between them + 1).
Difference between two floats in ULPs (i.e. number of representable numbers between them + 1).
(is-array? a)
Return true if a
is an array.
Return true if `a` is an array.
(is-infinite? f)
Return true if f
is infinite.
Return true if `f` is infinite.
The largest representable non-infinite Double.
The largest representable non-infinite Double.
(nan? f)
Return true if f
is NaN (Not-a-Number)
Return true if `f` is NaN (Not-a-Number)
(sign f)
Return the sign of f
(+1 if positive, -1 if negative, 0 if zero, or NaN if NaN).
Return the sign of `f` (+1 if positive, -1 if negative, 0 if zero, or NaN if NaN).
(to-float f)
Round f
to a single precision (32-bit) float.
Round `f` to a single precision (32-bit) float.
(ulp f)
Units in the Last Place (ULP) of f
(difference between f and the next largest representable number).
Units in the Last Place (ULP) of `f` (difference between f and the next largest representable number).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close