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]])