dot_outer#

Quaternion.dot_outer(other: Quaternion) ndarray[source]#

Return the dot products of all quaternions to all the other quaternions.

Parameters:
other

Other quaternions.

Returns:
dot_products

Dot products.

Examples

>>> from orix.quaternion import Quaternion
>>> q1 = Quaternion([[1, 0, 0, 0], [0.9239, 0, 0, 0.3827]])
>>> q2 = Quaternion([[0.9239, 0, 0, 0.3827], [0.7071, 0, 0, 0.7071]])
>>> q1.dot_outer(q2)
array([[0.9239    , 0.7071    ],
       [1.0000505 , 0.92389686]])