You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `MicroFloatingPoints` package is organized into three modules:
12
+
The `MicroFloatingPoints` package is organized into four modules:
13
13
14
14
-`MicroFloatingPoints`: the main module containing the definition of the parameterized type `Floatmu` and the associated methods;
15
+
-`MicroFloatingPoints.MFPUtils`: a module providing miscellaneous utility functions for the `Floatmu` type;
15
16
-`MicroFloatingPoints.MFPPlot`: a module offering various graphical ways to display `Floatmu` floating-point numbers;
16
17
-`MicroFloatingPoints.MFPRandom`: the module overloading [`Random.rand`](https://docs.julialang.org/en/v1/stdlib/Random/#Base.rand) to produce `Floatmu` random values.
Copy file name to clipboardexpand all lines: docs/src/manual.md
+34
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@ DocTestSetup = quote
3
3
using Distributions, Random
4
4
using MicroFloatingPoints
5
5
using MicroFloatingPoints.MFPPlot, MicroFloatingPoints.MFPRandom
6
+
using MicroFloatingPoints.MFPUtils
6
7
end
7
8
CurrentModule = MicroFloatingPoints
8
9
```
@@ -259,6 +260,18 @@ true
259
260
260
261
Note that, in the first example, the result of the computation needed rounding, while in the second example, the output is representable but one of the intermediary computation needed rounding.
261
262
263
+
## The `MicroFloatingPoints.MFPUtils` module
264
+
265
+
```@meta
266
+
CurrentModule = MicroFloatingPoints.MFPUtils
267
+
```
268
+
269
+
The `MicroFloatingPoints.MFPUtils` module offers some utiliy functions to be used either by other modules of the `MicroFloatingPoints` package or directly by the end user.
270
+
271
+
```@docs
272
+
vertical_popcount(T::Vector{Floatmu{szE,szf}}) where {szE,szf}
Note that, in the preceding example, we have to revert the array obtained from `vertical_popcount` because the number of times bit `i` is `1` is saved at position `i`. As a consequence, the value for the rightmost bit of a `Floatmu` appears at the leftmost position of the counting array.
0 commit comments