qmatrix

(method of quaternion)

returns the quaternion multiplication matrix

Syntax

Q = qmatrix(q)