|
1 | 1 | {
|
2 | 2 | "metadata": {
|
3 | 3 | "name": "",
|
4 |
| - "signature": "sha256:962f383af4f0226cdba8618e9034a3fda76689d31a32d165b2f89a6dc7ab7389" |
| 4 | + "signature": "sha256:c53d1aaf41825ecf8aae8e9e7691d07f984de379cd765b3cabd973cfb29cc420" |
5 | 5 | },
|
6 | 6 | "nbformat": 3,
|
7 | 7 | "nbformat_minor": 0,
|
|
104 | 104 | "<br>"
|
105 | 105 | ]
|
106 | 106 | },
|
| 107 | + { |
| 108 | + "cell_type": "heading", |
| 109 | + "level": 1, |
| 110 | + "metadata": {}, |
| 111 | + "source": [ |
| 112 | + "Sections" |
| 113 | + ] |
| 114 | + }, |
| 115 | + { |
| 116 | + "cell_type": "markdown", |
| 117 | + "metadata": {}, |
| 118 | + "source": [ |
| 119 | + "- [Bubblesort in regular (C)Python](#bubblesort-cpython)\n", |
| 120 | + "- [Bubblesort implemented in Cython](#Bubblesort-implemented-in-Cython)\n", |
| 121 | + " - [Naive Cython implementation - auto-guessing types](#Naive-Cython-implementation---auto-guessing-types)\n", |
| 122 | + " - [Cython with explicit type-declarations](#Cython-with-explicit-type-declarations)\n", |
| 123 | + "- [Speed comparison](#Speed-comparison)\n", |
| 124 | + "- [How to use Cython without the IPython magic](#How-to-use-Cython-without-the-IPython-magic)" |
| 125 | + ] |
| 126 | + }, |
| 127 | + { |
| 128 | + "cell_type": "markdown", |
| 129 | + "metadata": {}, |
| 130 | + "source": [ |
| 131 | + "<a name=\"introduction\"></a>\n", |
| 132 | + "<br>\n", |
| 133 | + "<br>" |
| 134 | + ] |
| 135 | + }, |
| 136 | + { |
| 137 | + "cell_type": "markdown", |
| 138 | + "metadata": {}, |
| 139 | + "source": [ |
| 140 | + "<a id='bubblesort-cpython'></a>" |
| 141 | + ] |
| 142 | + }, |
107 | 143 | {
|
108 | 144 | "cell_type": "heading",
|
10000
109 | 145 | "level": 2,
|
|
112 | 148 | "Bubblesort in regular (C)Python"
|
113 | 149 | ]
|
114 | 150 | },
|
| 151 | + { |
| 152 | + "cell_type": "markdown", |
| 153 | + "metadata": {}, |
| 154 | + "source": [ |
| 155 | + "[[back to top](#Sections)]" |
| 156 | + ] |
| 157 | + }, |
115 | 158 | {
|
116 | 159 | "cell_type": "markdown",
|
117 | 160 | "metadata": {},
|
|
179 | 222 | "Bubblesort implemented in Cython"
|
180 | 223 | ]
|
181 | 224 | },
|
| 225 | + { |
| 226 | + "cell_type": "markdown", |
| 227 | + "metadata": {}, |
| 228 | + "source": [ |
| 229 | + "[[back to top](#Sections)]" |
| 230 | + ] |
| 231 | + }, |
182 | 232 | {
|
183 | 233 | "cell_type": "markdown",
|
184 | 234 | "metadata": {},
|
|
213 | 263 | "Naive Cython implementation - auto-guessing types"
|
214 | 264 | ]
|
215 | 265 | },
|
| 266 | + { |
| 267 | + "cell_type": "markdown", |
| 268 | + "metadata": {}, |
| 269 | + "source": [ |
| 270 | + "[[back to top](#Sections)]" |
| 271 | + ] |
| 272 | + }, |
216 | 273 | {
|
217 | 274 | "cell_type": "code",
|
218 | 275 | "collapsed": false,
|
|
246 | 303 | "Cython with explicit type-declarations"
|
247 | 304 | ]
|
248 | 305 | },
|
| 306 | + { |
| 307 | + "cell_type": "markdown", |
| 308 | + "metadata": {}, |
| 309 | + "source": [ |
| 310 | + "[[back to top](#Sections)]" |
| 311 | + ] |
| 312 | + }, |
249 | 313 | {
|
250 | 314 | "cell_type": "code",
|
251 | 315 | "collapsed": false,
|
|
294 | 358 | "Speed comparison"
|
295 | 359 | ]
|
296 | 360 | },
|
| 361 | + { |
| 362 | + "cell_type": "markdown", |
| 363 | + "metadata": {}, |
| 364 | + "source": [ |
| 365 | + "[[back to top](#Sections)]" |
| 366 | + ] |
| 367 | + }, |
297 | 368 | {
|
298 | 369 | "cell_type": "markdown",
|
299 | 370 | "metadata": {},
|
|
838 | 909 | "Speed comparison"
|
839 | 910 | ]
|
840 | 911 | },
|
| 912 | + { |
| 913 | + "cell_type": "markdown", |
| 914 | + "metadata": {}, |
| 915 | + "source": [ |
| 916 | + "[[back to top](#Sections)]" |
| 917 | + ] |
| 918 | + }, |
841 | 919 | {
|
842 | 920 | "cell_type": "code",
|
843 | 921 | "collapsed": false,
|
|
0 commit comments