# ROOT::Math linking in PyROOT for vector operations

**URL:** <https://root-forum.cern.ch/t/root-math-linking-in-pyroot-for-vector-operations/51685>\
**Category:** ROOT\
**Tags:** python, math\
**Created:** [September 23, 2022, 2:17pm UTC](https://root-forum.cern.ch/t/root-math-linking-in-pyroot-for-vector-operations/51685 "2022-09-23T14:17:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mindaugas\_Sarpis](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mindaugas_sarpis/32/29568_2.png) [@Mindaugas\_Sarpis](https://root-forum.cern.ch/u/Mindaugas_Sarpis)\
**Post date:** [September 23, 2022, 2:17pm UTC](https://root-forum.cern.ch/t/root-math-linking-in-pyroot-for-vector-operations/51685/1 "2022-09-23T14:17:40Z")

</div>

I am trying to Rotate a Vector around another in a python file using root 6.26.06

I get weird linking error:

```auto
IncrementalExecutor::executeFunction: symbol '_ZN4ROOT4Math9gv_detail47ERROR_This_Rotation_Conversion_is_NOT_SupportedC1Ev' unresolved while linking symbol '__cf_11'!
You are probably missing the definition of ROOT::Math::gv_detail::ERROR_This_Rotation_Conversion_is_NOT_Supported::ERROR_This_Rotation_Conversion_is_NOT_Supported()
Maybe you need to load the corresponding shared library?

```

Reproducer:

```auto
import ROOT

v1 = ROOT.Math.XYZVector(1,1,1)
v2 = ROOT.Math.XYZVector(2,3,4)

rot = ROOT.Math.Rotation3D(ROOT.Math.AxisAngle(v2, 0.2))

v3 = rot*v1

```

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [September 26, 2022, 9:08am UTC](https://root-forum.cern.ch/t/root-math-linking-in-pyroot-for-vector-operations/51685/2 "2022-09-26T09:08:35Z")

</div>

I guess @moneta can help you.

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [September 26, 2022, 10:06am UTC](https://root-forum.cern.ch/t/root-math-linking-in-pyroot-for-vector-operations/51685/3 "2022-09-26T10:06:30Z")

</div>

Hi,  
It is very strange that this does not work in Python (it works in C++). I will open an issue.  
As a workaround you can do:

```auto
v3 = rot(v1)

```

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [October 10, 2022, 10:06am UTC](https://root-forum.cern.ch/t/root-math-linking-in-pyroot-for-vector-operations/51685/4 "2022-10-10T10:06:45Z")

</div>

Closed on October 10, 2022, 10:06am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
