Post · 1 min read· p. 126

Quaternion.mult_L

Quaternion.mult_L() → ndarray : Matrix form of a left-sided quaternion multiplication Q.

code
Matrix representation of quaternion product with a left sided
quaternion [[Sar07](/u/fab8b0a9fec670cf#id64)]:

qp=L(q)p=[qw−qx−qy−qzqxqw−qzqyqyqzqw−qxqz−qyqxqw][pwpxpypz]\begin{split}\mathbf{qp} = \mathbf{L}(\mathbf{q})\mathbf{p} = \begin{bmatrix} q_w & -q_x & -q_y & -q_z \\ q_x & q_w & -q_z & q_y \\ q_y & q_z & q_w & -q_x \\ q_z & -q_y & q_x & q_w \end{bmatrix} \begin{bmatrix}p_w \\ p_x \\ p_y \\ p_z\end{bmatrix}\end{split}
Returns: : **Q** – Matrix form of the left side quaternion multiplication. Return type: : numpy.ndarray