.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "_build/auto_examples/benchmarks/ODE_ivp_LowLevel_bench.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr__build_auto_examples_benchmarks_ODE_ivp_LowLevel_bench.py: Benchmark of LowLevelCallable for ODE IVP ========================================= .. GENERATED FROM PYTHON SOURCE LINES 7-8 Definition of benchmarked integrands .. GENERATED FROM PYTHON SOURCE LINES 8-22 .. code-block:: Python all_funs_vect = { 'mul_py_fun_array' : test_from_fun(mul_py_fun_array), 'mul_nb_fun_inplace_pointer' : test_from_fun(mul_nb_fun_inplace_pointer), 'py_fun_in_pyx' : test_from_fun(choreo.scipy_plus.cython.test.mul_py_fun_tx) , 'cy_fun_pointer_LowLevel' : test_from_fun(scipy.LowLevelCallable.from_cython(choreo.scipy_plus.cython.test, "mul_cy_fun_pointer_tx")), 'cy_fun_memoryview_LowLevel' : test_from_fun(scipy.LowLevelCallable.from_cython(choreo.scipy_plus.cython.test, "mul_cy_fun_memoryview_tx")), } all_benchs = { f'Vector function of size {choreo.scipy_plus.cython.test.mul_size_py}' : all_funs_vect , } .. image-sg:: /_build/auto_examples/benchmarks/images/sphx_glr_ODE_ivp_LowLevel_bench_001.png :alt: Vector function of size 10 :srcset: /_build/auto_examples/benchmarks/images/sphx_glr_ODE_ivp_LowLevel_bench_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.691 seconds) .. _sphx_glr_download__build_auto_examples_benchmarks_ODE_ivp_LowLevel_bench.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: ODE_ivp_LowLevel_bench.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: ODE_ivp_LowLevel_bench.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_