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
Copy file name to clipboardExpand all lines: docs/source/05-stochastic-rounding.ipynb
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -464,7 +464,7 @@
464
464
"cell_type": "markdown",
465
465
"metadata": {},
466
466
"source": [
467
-
"# Implementation\n",
467
+
"## Implementation of SR\n",
468
468
"\n",
469
469
"The second part of this notebook goes deeper into the implementation of SR,\n",
470
470
"and explores some subtleties that are not generally brought out in discussions of practical implementations. These subtleties might be summarized as\n",
@@ -474,7 +474,7 @@
474
474
"\n",
475
475
"Note that these details are independent of the quality of the random number generator (RNG) — all of the issues discussed here happen with perfect RNGs.\n",
476
476
"\n",
477
-
"## Case 0: Infinite-precision inputs and real-valued random variables\n",
477
+
"### Case 0: Infinite-precision inputs and real-valued random variables\n",
478
478
"\n",
479
479
"To begin our discussion, let's start with \"high-school\" rounding,\n",
480
480
"where we implement round-to-nearest with code like\n",
@@ -493,7 +493,7 @@
493
493
"but needs to change subtly when they are supplied in fixed precision, as is true \n",
494
494
"in a floating point system.\n",
495
495
" \n",
496
-
"## Case 1: Infinite-precision inputs and limited-precision random variables\n",
496
+
"### Case 1: Infinite-precision inputs and limited-precision random variables\n",
497
497
"\n",
498
498
"Let's assume that `rand()` produces only `S` bits of randomness at every call,\n",
499
499
"i.e. that its implementation is something like\n",
@@ -868,7 +868,7 @@
868
868
"Good news. `SRFast` (the curve on the left) seems to have fixed things...\n",
869
869
"What could be wrong? Why is that not the default?\n",
870
870
"\n",
871
-
"## Case 2: Finite-precision inputs and limited-precision random variables\n",
871
+
"### Case 2: Finite-precision inputs and limited-precision random variables\n",
872
872
"\n",
873
873
"The answer is that we are still modelling the inputs `v` as being infinite precision (well, they are float64 here, but that's pretty much infinite precision).\n",
0 commit comments