A low-precision floating point number, necessary because some GPUs offer
a reduced precision mode for multiply-adds that is faster.
This supplies
the "approximately equal" functionality needed to compare results on the
GPU with results on the CPU (which generally has higher precision). The
implicit defined in the companion object lets you write code like this:
val a: Float = ...
val b: Float = ...
val approxEqual: Boolean = (a ~== b)
A low-precision floating point number, necessary because some GPUs offer a reduced precision mode for multiply-adds that is faster.
This supplies the "approximately equal" functionality needed to compare results on the GPU with results on the CPU (which generally has higher precision). The implicit defined in the companion object lets you write code like this:
To access this:
import cog.algebra.real.PoorFloat._
User: snider1