We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51e46d6 commit 8ec0891Copy full SHA for 8ec0891
src/lazy_float.jl
@@ -1,5 +1,11 @@
1
-# This is used to store floats without forcing promotion on other
2
-# numeric types.
+"""
+ AutoFloat <: AbstractFloat
3
+
4
+A wrapper around a `Float64` which automatically demotes
5
+itself to `Float32` or `Float16` if interacting with
6
+such a type. In other cases it will respect promotion
7
+rules associated with `Float64`.
8
9
struct AutoFloat <: AbstractFloat
10
value::Float64
11
0 commit comments