@ -56,7 +56,7 @@
< body >
< header >
< aside > June 2 , 2025< / aside >
< aside > June 4 , 2025< / aside >
< a href = "https://gto76.github.io" rel = "author" > Jure Šorn< / a >
< / header >
@ -2876,13 +2876,13 @@ px.line(df, x=<span class="hljs-string">'Date'</span>, y=<span class="hljs-strin
< div > < h2 id = "appendix" > < a href = "#appendix" name = "appendix" > #< / a > Appendix< / h2 > < div > < h3 id = "cython" > Cython< / h3 > < p > < strong > Library that compiles Python-like code into C.< / strong > < / p > < pre > < code class = "python language-python hljs" > < span class = "hljs-comment" > # $ pip3 install cython< / span >
< span class = "hljs-keyword" > import< / span > pyximport; pyximport.install() < span class = "hljs-comment" > # Module that runs imported Cython scripts.< / span >
< span class = "hljs-keyword" > import< / span > < cython_script> < span class = "hljs-comment" > # Script must be saved with '.pyx' extension.< / span >
< cython_script> .main() < span class = "hljs-comment" > # Main() isn't automatically executed.< / span >
< / code > < / pre > < / div > < / div >
< div > < h4 id = "allcdefdefinitionsareoptionalbuttheycontributetothespeedup" > All < code class = "python hljs" > < span class = "hljs-string" > 'cdef'< / span > < / code > definitions are optional, but they contribute to the speed-up:< / h4 > < pre > < code class = "python language-python hljs" > < span class = "hljs-keyword" > cdef< / span > < ctype/type> [*]< var_name> [= < obj> ]
< span class = "hljs-keyword" > cdef< / span > < ctype> [n_elements] < var_name> [= < coll_of_nums> ]
< span class = "hljs-keyword" > cdef< / span > < ctype> [n_items] < array_name> [= < coll_of_nums/structs> ]
< span class = "hljs-keyword" > cdef< / span > < ctype> *< array_name> = < < ctype> *> malloc(n_items * sizeof(< ctype> ))
< span class = "hljs-keyword" > cdef< / span > < ctype/type/void> < func_name> (< ctype/type> [*]< arg_name> ): ...
< / code > < / pre > < / div >
@ -2939,7 +2939,7 @@ $ deactivate <span class="hljs-comment"># Deactivates the active
< footer >
< aside > June 2 , 2025< / aside >
< aside > June 4 , 2025< / aside >
< a href = "https://gto76.github.io" rel = "author" > Jure Šorn< / a >
< / footer >