.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples\exp_map.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_auto_examples_exp_map.py: Exponential Map Example ======================= Compute the exponential map on the unit sphere. .. GENERATED FROM PYTHON SOURCE LINES 7-24 .. rst-class:: sphx-glr-script-out .. code-block:: none Input vectors: x = [0. 0. 1.] v = [1. 1. 0.] Exponential map exp_map(x, v): [0.698456 0.698456 0.15594369] | .. code-block:: Python import numpy as np from spheresmooth import exp_map # Example inputs x = np.array([0.0, 0.0, 1.0]) v = np.array([1.0, 1.0, 0.0]) print("Input vectors:") print("x =", x) print("v =", v) # Compute exponential map: exp_map(x, v) result = exp_map(x, v) print("\nExponential map exp_map(x, v):") print(result) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.001 seconds) .. _sphx_glr_download_auto_examples_exp_map.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: exp_map.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: exp_map.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: exp_map.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_