grogupy._core.RotMa2b
- grogupy._core.RotMa2b(a: ndarray[Any, dtype[_ScalarType_co]], b: ndarray[Any, dtype[_ScalarType_co]], eps: float = 1e-10) ndarray[Any, dtype[_ScalarType_co]][source]
Definition of rotation matrix rotating unit vector a to unit vector b.
Function returns array R such that R @ a = b holds.
Parameters
- a: NDArray
First vector
- b: NDArray
Second vector
- eps: float, optional
Cutoff for small elements in the resulting matrix. Defaults to 1e-10
Returns
- NDArray
The rotation matrix with the above property