Commit 486e7cac authored by CHAMONT David's avatar CHAMONT David
Browse files

Apres On-Demand Floating Point

parent b2f3e1ce
......@@ -6,15 +6,15 @@
"source": [
"# Performance optimization\n",
"\n",
"1. [Choice of data structure](en.1-arrays.ipynb)\n",
"1. [The cost of the different operations](en.2-operations.ipynb)"
"1. [Choice of data structure](1-arrays.ipynb)\n",
"1. [The cost of the different operations](2-operations.ipynb)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"© *CNRS 2021*\n",
"© *CNRS 2022*\n",
"*Assembled and written in french by David Chamont, translated by Karim Hasnaoui, this work is made available according to the terms of the [Creative Commons License - Attribution - NonCommercial - ShareAlike 4.0 International](http://creativecommons.org/licenses/by-nc-sa/4.0/)*"
]
}
......@@ -35,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.5"
"version": "3.9.12"
}
},
"nbformat": 4,
......
......@@ -80,7 +80,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.5"
"version": "3.9.12"
}
},
"nbformat": 4,
......
......@@ -281,7 +281,7 @@
"| long double | | | | |\n",
"\n",
"To make sure you don't lose any information while printing out, make sure you display 18 significant digits.\n",
"* What do we mean here by \"mininal value\" ? What is the difference with the \"lowest value\" ?\n",
"* What do we mean here by \"minimal value\" ? What is the difference with the \"lowest value\" ?\n",
"* What do you think of the results for `long double`: it is rather 80 or 128 bits ?\n",
"\n",
"<!--\n",
......@@ -343,7 +343,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.5"
"version": "3.9.12"
}
},
"nbformat": 4,
......
......@@ -65,7 +65,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 1,
"metadata": {
"slideshow": {
"slide_type": "subslide"
......@@ -88,7 +88,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 2,
"metadata": {
"slideshow": {
"slide_type": "fragment"
......@@ -99,7 +99,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Overwriting tmp.precision.cpp\n"
"Writing tmp.precision.cpp\n"
]
}
],
......@@ -127,7 +127,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 3,
"metadata": {
"slideshow": {
"slide_type": "subslide"
......@@ -140,7 +140,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 4,
"metadata": {
"slideshow": {
"slide_type": "fragment"
......@@ -161,7 +161,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 5,
"metadata": {
"slideshow": {
"slide_type": "fragment"
......@@ -184,7 +184,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 6,
"metadata": {
"slideshow": {
"slide_type": "fragment"
......@@ -197,7 +197,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 7,
"metadata": {
"slideshow": {
"slide_type": "fragment"
......@@ -260,7 +260,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 8,
"metadata": {
"slideshow": {
"slide_type": "subslide"
......@@ -294,13 +294,13 @@
"int main()\n",
" {\n",
" reduce(std::vector<double>{ 1.1, 2.2, 3.3, 4.4, 5.5 }) ;\n",
" reduce(std::vector<float>{ 1.1, 2.2, 3.3, 4.4, 5.5 }) ;\n",
" reduce<float>({ 1.1, 2.2, 3.3, 4.4, 5.5 }) ;\n",
" }"
]
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 9,
"metadata": {
"slideshow": {
"slide_type": "skip"
......@@ -313,7 +313,7 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 10,
"metadata": {
"scrolled": true,
"slideshow": {
......@@ -591,7 +591,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.5"
"version": "3.9.12"
}
},
"nbformat": 4,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment