Skip to content

Commit f7c028d

Browse files
authored
Update README.md
1 parent 7275e92 commit f7c028d

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed

README.md

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,13 @@ Most arithmetic operations are implemented. If you would like to have an additio
3434

3535
`Float8s.jl` is registered, just do
3636
```julia
37-
(v1.3) pkg> add Float8s
37+
pkg> add Float8s
3838
```
3939

40-
# Benchmarking
41-
Conversions from `Float8` (same for `Float8_4`) to `Float32` take about 1.5ns, about 2x faster than for conversions from `Float16` thanks to table lookups.
42-
```julia
43-
julia> using Float8s, BenchmarkTools
44-
julia> A = Float8.(randn(300,300));
45-
julia> B = Float16.(randn(300,300));
46-
julia> @btime Float32.($A);
47-
133.060 μs (2 allocations: 351.64 KiB)
48-
julia> @btime Float32.($B);
49-
232.701 μs (2 allocations: 351.64 KiB)
50-
```
51-
Conversions in the other direction are about 6-7x slower and slightly slower than for `Float16`.
52-
```julia
53-
julia> C = Float32.(randn(300,300));
54-
julia> @btime Float16.($C);
55-
672.419 μs (2 allocations: 175.89 KiB)
56-
julia> @btime Float8.($C);
57-
873.585 μs (2 allocations: 88.02 KiB)
58-
```
59-
40+
# Citation
41+
42+
This package was written for the following publication
43+
44+
> Klöwer M, PD Düben and TN Palmer, 2020. *Number formats, error mitigation and scope for 16-bit arithmetics in weather and climate modelling analyzed with a shallow water model*, __Journal of Advances in Modeling Earth Systems__, 12, e2020MS002246. doi: [10.1029/2020MS002246](https://doi.org/10.1029/2020MS002246)
45+
46+
If you use this package in your own research, please cite us.

0 commit comments

Comments
 (0)