07: Remove unused commented code

This commit is contained in:
2022-02-18 18:11:42 +01:00
parent e2a05296d1
commit f2f2f9d23d

View File

@ -916,20 +916,16 @@
"fig, ax = plt.subplots()\n",
"\n",
"for alg, alg_name in [(GS, \"Gauss-Seidel\"), (SD, \"Steepest Descent\"), (CG, \"Conjugate Gradient\")]:\n",
" #diff_list = []\n",
" k_list = []\n",
" for eps in eps_list:\n",
" x, k = alg(A, b, eps)\n",
" #diff_list.append(diff(x_exact, x))\n",
" k_list.append(k)\n",
" #ax.plot(eps_list, diff_list, label=alg_name)\n",
" ax.plot(eps_list, k_list, label=alg_name)\n",
" \n",
"ax.set_xscale(\"log\")\n",
"ax.invert_xaxis()\n",
"ax.set_yscale(\"log\")\n",
"ax.set_xlabel(\"$\\epsilon$\")\n",
"#ax.set_ylabel(\"$||\\\\vec{x}^* - \\\\vec{\\\\tilde{x}}||_\\infty$\")\n",
"ax.set_ylabel(\"$k$\")\n",
"ax.legend()\n",
"\n",