From c7f72453a8b5a7986e972b24fdd005cbcaa0bf87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Meinard=20M=C3=BCller?= Date: Mon, 4 Oct 2021 16:11:54 +0200 Subject: [PATCH] executed --- PCP_complex.ipynb | 2 +- PCP_control.ipynb | 8 ++++---- PCP_dft.ipynb | 10 +++++----- PCP_numpy.ipynb | 6 +++--- PCP_python.ipynb | 6 +++--- PCP_signal.ipynb | 2 +- tools/notebook_batch.py | 3 ++- 7 files changed, 19 insertions(+), 18 deletions(-) diff --git a/PCP_complex.ipynb b/PCP_complex.ipynb index 992bb66..90c435b 100644 --- a/PCP_complex.ipynb +++ b/PCP_complex.ipynb @@ -808,7 +808,7 @@ " " ], "text/plain": [ - "" + "" ] }, "metadata": {}, diff --git a/PCP_control.ipynb b/PCP_control.ipynb index 4139cb3..2e75a8c 100644 --- a/PCP_control.ipynb +++ b/PCP_control.ipynb @@ -494,9 +494,9 @@ "Computation with sum_n: n=1000, s=500500\n", "Computation with sum_n_numpy: n=1000, s=500500\n", "Computation with sum_n_math: n=1000, s=500500\n", - "Runtime for sum_n: 0.745002 ms\n", - "Runtime for sum_n_numpy: 0.023714 ms\n", - "Runtime for sum_n_math: 0.000369 ms\n" + "Runtime for sum_n: 0.801720 ms\n", + "Runtime for sum_n_numpy: 0.023044 ms\n", + "Runtime for sum_n_math: 0.000312 ms\n" ] } ], @@ -631,7 +631,7 @@ "default: nan\n", "s='large': 1267650600228229401496703205376\n", "s='small': 7.888609052210118e-31\n", - "s='random': 0.7876194112775149\n", + "s='random': 0.9201934479692196\n", "s='test': nan\n" ] } diff --git a/PCP_dft.ipynb b/PCP_dft.ipynb index 84aa323..f4a2b89 100644 --- a/PCP_dft.ipynb +++ b/PCP_dft.ipynb @@ -716,11 +716,11 @@ "name": "stdout", "output_type": "stream", "text": [ - "Runtime (ms) for N = 256 : DFT 23.99, FFT 0.01239, FFT_np 0.00001220\n", - "Runtime (ms) for N = 512 : DFT 31.06, FFT 0.02377, FFT_np 0.00001618\n", - "Runtime (ms) for N = 1024 : DFT 105.50, FFT 0.04329, FFT_np 0.00002411\n", - "Runtime (ms) for N = 2048 : DFT 381.55, FFT 0.08357, FFT_np 0.00004250\n", - "Runtime (ms) for N = 4096 : DFT 1441.13, FFT 0.15967, FFT_np 0.00008037\n" + "Runtime (ms) for N = 256 : DFT 19.22, FFT 0.01186, FFT_np 0.00001728\n", + "Runtime (ms) for N = 512 : DFT 31.76, FFT 0.02365, FFT_np 0.00001604\n", + "Runtime (ms) for N = 1024 : DFT 104.20, FFT 0.03962, FFT_np 0.00002435\n", + "Runtime (ms) for N = 2048 : DFT 376.25, FFT 0.08224, FFT_np 0.00004206\n", + "Runtime (ms) for N = 4096 : DFT 1418.35, FFT 0.15875, FFT_np 0.00007802\n" ] } ], diff --git a/PCP_numpy.ipynb b/PCP_numpy.ipynb index 219c042..7ce7c34 100644 --- a/PCP_numpy.ipynb +++ b/PCP_numpy.ipynb @@ -192,8 +192,8 @@ " [1. 1. 1.]]\n", "Evenly spaced values within a given interval: [2 4 6]\n", "Random values in a given shape: \n", - "[[0.50856662 0.40243786 0.01390166]\n", - " [0.64443722 0.92612633 0.10115522]]\n", + "[[0.01535107 0.6751583 0.8990807 ]\n", + " [0.32712275 0.99270913 0.6752546 ]]\n", "Identity matrix: \n", "[[1. 0. 0.]\n", " [0. 1. 0.]\n", @@ -864,7 +864,7 @@ "[16 15 14 6 5 4 0] Type: \n", "[16 15 14 6 5 4 0] Type: \n", "[16 15 14 6 5 4 0] Type: \n", - " Type: \n", + " Type: \n", "[16, 15, 14, 6, 5, 4, 0] Type: \n" ] } diff --git a/PCP_python.ipynb b/PCP_python.ipynb index a1e6fcd..980969c 100644 --- a/PCP_python.ipynb +++ b/PCP_python.ipynb @@ -752,9 +752,9 @@ "name": "stdout", "output_type": "stream", "text": [ - "a = [1, 2, 3] , id(a) = 2816546664584\n", - "b = [0, 2, 3, 4] , id(b) = 2816546664584\n", - "a = [0, 2, 3, 4] , id(a) = 2816546664584\n" + "a = [1, 2, 3] , id(a) = 2557061805768\n", + "b = [0, 2, 3, 4] , id(b) = 2557061805768\n", + "a = [0, 2, 3, 4] , id(a) = 2557061805768\n" ] } ], diff --git a/PCP_signal.ipynb b/PCP_signal.ipynb index 05013b9..32e30e8 100644 --- a/PCP_signal.ipynb +++ b/PCP_signal.ipynb @@ -881,7 +881,7 @@ " " ], "text/plain": [ - "" + "" ] }, "metadata": {}, diff --git a/tools/notebook_batch.py b/tools/notebook_batch.py index 7f6ac32..b499115 100644 --- a/tools/notebook_batch.py +++ b/tools/notebook_batch.py @@ -18,7 +18,8 @@ if args.mode == 'execute': opt = '--ExecutePreprocessor.timeout=3600 --to notebook --execute --inplace' if args.mode == 'html': - opt = '--to html --template classic' + # opt = '--to html --template classic' + opt = '--to html' for dirpath, dirnames, filenames in os.walk(args.directory):